Setting up Your Development Environment

I am trying to setup the dev environment and following the instructions here
https://docs.openclinica.com/3.1/technical-documents/developing-openclinica

The instructions appear to be out of date and i am running into dependency issues when building the project.

Does anyone have a more up to date guide?

«1

Comments

  • skwalerskwaler Posts: 47
    Can any of the OpenClincia devs share their setup?
  • fclemceresfclemceres Posts: 3
    Hi skwaler,

    We are also trying to set up the Devs and are running in the same issues: outdated instruction... outdated plugin... here our IT is fighting against Eclipse.

    Can you share where are you blocked? We might fight on the same front.

    frederic
    Data Manager
  • Wilfried RitterWilfried Ritter Posts: 8
    mvn clean install -Dmaven.test.skip=true
    delivers information that all is OK but with a lot of warnings
  • Wilfried RitterWilfried Ritter Posts: 8
    mvn clean install from the Menu in Eclipse
    delivers Errors
  • haenselhaensel Posts: 551 ✭✭

    mvn clean install from the Menu in Eclipse
    delivers Errors

    Enable the checkbox "Skip Tests" for your maven build
    Run -> Run Configurations ... -> Maven build -> select you maven build
  • Wilfried RitterWilfried Ritter Posts: 8
    Thank you for your quick answer. Switching off the tests and recieving a .war file which couldn't be deployed on tomcat - Firefox gives me a Whitescreen
    The Output of that trial I sent one minute before my last comment. Now I have to check all steps especially theese after the optional JRebel Configuration in the manual page. Can you see in the warnings what happens exactly?
  • haenselhaensel Posts: 551 ✭✭

    Can you see in the warnings what happens exactly?

    Sorry no.

    But usually I try to find the problem by checking the tomcat and openclinica log files. If you populate them here I'll have a look at them.

  • haenselhaensel Posts: 551 ✭✭
    If the build succeeds the development environment is configured probably.
  • Wilfried RitterWilfried Ritter Posts: 8
    edited September 14
    The solution for me had been to use a special branch in the git clone statement, but where are the Openclinica log-files, when they are not in /var/log/tomcat?

    and why the following @RequestMapping never triggers in OpenClinica?
    (wr-24 is never printed)

    @Controller
    public class HelloController {

    public HelloController() {
    System.out.println("wr-23");
    }

    @RequestMapping(value = "/example", method = RequestMethod.GET)
    public ModelAndView examplePage() {

    System.out.println("wr-24");
    ModelAndView model = new ModelAndView();
    model.addObject("title", "Spring Security Custom Example Form");
    model.addObject("message", "This is Example page!");
    model.setViewName("/WEB-INF/jsp/login/example.jsp");

    return model;

    }
    }

    I put in:
    /home/ceres/OpenClinica/web/src/main/resources/org/akaza/openclinica
    /applicationContext-security.xml (22)
    < security:intercept-url pattern="/tan" filters="none"/ >
    Post edited by Wilfried Ritter on
Sign In or Register to comment.