I’m trying to deploy a CAS web application on JBOSS 7. The package name is cas-server-webapp-3.4.11.war.
I’m facing the following error during install:
09:37:06,951 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cas-server-webapp-3.4.11]] (MSC service thread 1-5)
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:/D:/Programming/jboss7/bin/content/cas-server-webapp-3.4.11.war/WEB-INF/classes/log4j.xml
Deployment package is located in D:\Programming\jboss7\standalone\deployments\cas-server-webapp-3.4.11.war, but obviously JBOSS tries to resolve paths to D:/Programming/jboss7/bin/content/cas-server-webapp-3.4.11.war.
How I can change this path?
Solution is the following:
In persistence.xml put the following content:
In web.xml instead of:
put
Hope this will help & save time to others.