This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Exception during startup processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Exception during startup processing" Watch "Exception during startup processing" New topic
Author

Exception during startup processing

Jay Cypray
Greenhorn

Joined: Nov 26, 2012
Posts: 7


I have a web app that uses JSF 1.1, MyFaces, and Tomcat 4.1
My web application was deployed onto a Linux server.

The apache common -loggings jars are giving me problem. So I dont want to use the apache common loggings at all
I removed the commons-logging.jar and the commons-logging-api.jar from ALL the following path:
web/common/lib
WEB-INF/lib
server/lib

Then tomcat wont start and I got the error below.
Please, any ideas on how I can fix this problem. I don't want to use apache commons-loggings at all.
Where can I disable apache commons-loggings?



Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.commons.digester.Digester.<init>(Digester.java:346)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:229)
at org.apache.catalina.startup.Catalina.start(Catalina.java:412)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:945)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:810)


Thanks,
Cy
Wayan Saryada
Ranch Hand

Joined: Feb 05, 2004
Posts: 104

Jay Cypray wrote:
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:945)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:810)


You clearly need to add the apache commons logging library to your application.
Vivek SharmaJi
Ranch Hand

Joined: Dec 09, 2012
Posts: 38

You have just removed the jars. However server.xml which is using you did not provide your class. please check this link

http://tomcat.apache.org/connectors-doc-archive/jk2/jk2/vhosthowto.html

section - Configuring Tomcat to listen to Apache ajp13 requests

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception during startup processing
 
Similar Threads
JForum Won't Load
Lomboz Plugin error
HTTP Status 404 - Servlet action is not available
Error Configuring TomCat
Tomcat throws error if starts from Eclipse