#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Exception during startup processing


    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 will be helpful. 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
  2. #2
  3. Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    Superior, CO, USA
    Posts
    2,418
    Rep Power
    1713
    Tomcat uses commons logging - you're going to use it regardless of if you want to or not.

    I'm curious - do you remove parts of your car because you don't understand them? Restore Tomcat to its original state and then download Log4J and install it too.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Programming World


    For any information about programming languages like java, J2EE, Android, C, CPP, etc. Please check out my blog.
    programmingworld4u[dot]blogspot[dot]com

IMN logo majestic logo threadwatch logo seochat tools logo