Hi folks,
I have to post this question since I cannot find any real solution elsewhere.
I had tried many sugguestions on the web, but none of them work out, even though I follow those in
Tomcat's offical website. The following is my software enviornment configurations, followed by the configurations on
Tomcat's offical website and the errors reported by Tomcat.
Software enviornment: OS: Windows XP pro
JDK: 1.5
Tomcat: 5.5.4
Log4j: 1.2.9
common-logging: 1.0.4
The configuration briefly: * put log4j and common-logging jar file in Tomcat_home/common/lib directory
* put log4j.properties in Tomcat_home/common/classes directory
Reported errors: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at org.apache.catalina.core.StandardService.<clinit>(StandardService.java:53)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:201)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)
It also does NOT work, if I put log4j-1.2.9.jar in directory of WEB-INF/lib of my web app.
Can anyone help me out? Thanks
[ April 28, 2005: Message edited by: Lin Steve ]