We are providing logging properties from external file, and this file as configured at web.xml for log4jConfigLocation.
When I deployed bundled war its giving error.
ERROR SRVE0283E: Exception caught while initializing context: java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded
But when deployed war as expanded folder and its successfully deployed and logging configured as expected.
Help us, how to deploy bundled war with proper logging configuration.
We are using Liberty profile and spring 3.0.5
Thanks in advance.
This topic has been locked.
1 reply Latest Post - 2012-12-13T11:26:08Z by SystemAdmin
Pinned topic Not able to load logging properties when deployed as bundled war at Liberty
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
SystemAdmin 110000D4XK590 PostsACCEPTED ANSWER
Re: Not able to load logging properties when deployed as bundled war at Liberty2012-12-13T11:26:08Z in response to SystemAdminHi,
The error message you are seeing is occurring because the Spring Framework requires the web application to be deployed as a directory rather than as a .war file. The Liberty profile does not convert .war file deployed applications into exploded applications at runtime, this needs to be done prior to deploying the application to the runtime. This can be simply done using unzip tools. Using the unix command line tool you could type
unzip -d <path to server dir>/apps/mywebapp.war <path to .war file>