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

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

Finally fixed the issue.

Just need to change the param value for JBOSS server

Thanks for sharing the solution. :slight_smile: