Pinned topic Application is unable to load classes from log4j jar
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Hi I am using WASCE 18.104.22.168. My application is using log4j for logging. So when I deploy my war on WASCE, my application can not start because it is unable to initialize log4j configurations. Application is throwing error on every class of log4j jar as 'class not found'. Please help me to figure out the problem.
Updated on 2012-06-18T06:37:18Z at 2012-06-18T06:37:18Z by U4UE_xie_zhi
U4UE_xie_zhi 060001U4UE54 Posts
Re: Application is unable to load classes from log4j jar2012-06-18T06:37:18ZThis is the accepted answer. This is the accepted answer.Do you mean use the log4j which is included in your application? If so, I suggest you to use import-package function in your geronimo plan to avoid the log4j which the server provided. For example, <sys:import-package>!org.apache.log4j*</sys:import-**package>. About how to use the import-package you can also refer a sample(https://cwiki.apache.org/GMOxSAMPLES/running-hudson-on-geronimo-v30.html).