Log4j when running in Debug mode

When running a test app via the debug interface in Intellij I am warned about the following.

Mar 19, 2015 8:53:25 AM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'openvpms' = [C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-web\openvpms-web-app\src\webapp\]
Mar 19, 2015 8:53:25 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-web\openvpms-web-app\src\webapp\WEB-INF\classes\log4j.properties]
log4j:ERROR Could not read configuration file from URL [file:/C:/Users/benjamincharlton/OPENVPMS_GIT_REPO/openvpms-web/openvpms-web-app/src/webapp/WEB-INF/classes/log4j.properties].

Thats of course because the log4j configuration by defauly is actually held in 

C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-web\openvpms-web-app\src\conf\log4j\log4j.properties

and when its actually installed its placed in

C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-web\openvpms-web-app\target\classes\

and 

C:\Users\benjamincharlton\OPENVPMS_GIT_REPO\openvpms-web\openvpms-web-app\target\openvpms\WEB-INF\classes\

Is the problem that catalina is setting the web app root to the wrong location?

Side note any reason why we arent using the updated Maven Tomcat plugins?  

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Log4j when running in Debug mode

You can ignore that error. OpenVPMS sets up the log4j via Spring using the correct path.

If you want to update the tomcat plugin, feel free. Its only used for testing purposes.

Syndicate content