Error: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.xml] - while hosting core module on OpenShift Origin (JBOSS server)


(Vamsi Krishna Rajulapati) #1

Hi,

While hosting the OpenMRS core module on OpenShift Origin we are getting the following error:

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/openmrs]] (ServerService Thread Pool – 80) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener: java.lang.IllegalArgumentException: Invalid ‘log4jConfigLocation’ parameter: class path resource [log4j.xml] cannot be resolved to absolute file path because it does not reside in the file system: vfs:/content/openmrs.war/WEB-INF/classes/log4j.xml

Can somebody help me to resolve this error.

Thanks


Can we keep Reference Application modules (omod files) in openmrs-webapp's /WEB-INF/view/module/ folder?
(Vamsi Krishna Rajulapati) #2

Finally fixed the issue.

Just need to change the param value for JBOSS server


(Daniel Kayiwa) #3

Thanks for sharing the solution. :slight_smile: