views:

35

answers:

2

Hi,

While I start tomcat, I am getting the following exception. Could you let me know the reason. Here is the complete stacktrace.

java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

Thanks Shafi

A: 

That sounds like the JAR tomcat-juli.jar is missing or corrupt. Check the Tomcat distribution archive where it should be and install it again.

Aaron Digulla
tomcat-juli.jar is already present under tomcat/bin directory. I tried removing it but it's presence or absence is not making any difference. In both cases, I am getting the same error
shafi
Check the archive. Maybe it was corrupted somehow.
Aaron Digulla
+1  A: 

Just perform following steps:

  Tomcat's bootstrap.jar used to reference the file bin/tomcat-juli.jar in it's manifest. That is changing since it forced tomcat to use a specific library. Instead, it has to be added to the -classpath line. Open your server configuration, and add tomcat-juli.jar to the classpath, and it will work.
Rupeshit
I tried the same, But it didn't work :(
shafi