aspose file tools*
The moose likes Tomcat and the fly likes Reg : load exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Reg : load exception" Watch "Reg : load exception" New topic
Author

Reg : load exception

Mouli Natarajan
Greenhorn

Joined: Feb 18, 2009
Posts: 5
Hi All,

I am working on a web application.Until yesterday it was working fine but suddenly it started throwing this exception.I have all the jars and classpath set in place.

Please help me in this as I am trying to sort this out for a couple of hours.

Thanks in advance.

0:46 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class java.lang.NoClassDefFoundError: org/apache/commons/logging/Log
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3774)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Mar 11, 2009 8:40:46 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 11, 2009 8:40:46 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 11, 2009 8:40:46 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/one] startup failed due to previous errors
Mouli Natarajan
Greenhorn

Joined: Feb 18, 2009
Posts: 5
I am still getting the same exception.Its almost 8hours since i had this issue.Please let me know if anyone had the similar exception and had an fix for this.



Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Mouli Natarajan wrote:
java.lang.NoClassDefFoundError: org/apache/commons/logging/Log

The mentioned class is missing in the classpath.
To fix the problem just add the mentioned class to the classpath.

As the package name already hints, it is part of Apache Commons Logging which you can get at http://commons.apache.org/logging Download the JAR file(s) there if you don't have yet. The /WEB-INF/lib folder is covered by the classpath and the right place to put JAR files in.
Mouli Natarajan
Greenhorn

Joined: Feb 18, 2009
Posts: 5
Thanks Bauke.

But i already add the jars to my classpath.It throws an load exception a kind of a new exception.

I dont know how to handle this.



Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I am just translating the exception.
It is really not in the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reg : load exception
 
Similar Threads
Tomcat error while running JForum integrated project
Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
Problem configuring richfaces
Having issues with Tomcat 6.x
server: error ListenerStart