Topic
  • 1 reply
  • Latest Post - ‏2012-06-18T06:37:18Z by U4UE_xie_zhi
VikramBishnoi
VikramBishnoi
1 Post

Pinned topic Application is unable to load classes from log4j jar

‏2012-06-11T07:21:52Z |
Hi I am using WASCE 3.0.0.1. 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
    U4UE_xie_zhi
    54 Posts

    Re: Application is unable to load classes from log4j jar

    ‏2012-06-18T06:37:18Z  
    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).