*
The moose likes Struts and the fly likes Class not found exception in struts with hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Class not found exception in struts with hibernate" Watch "Class not found exception in struts with hibernate" New topic
Author

Class not found exception in struts with hibernate

harsh kulkarni
Greenhorn

Joined: May 09, 2006
Posts: 3
hi,
I am new to struts and hibernate
i got the following exception

java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableException
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:539)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:539)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
com.ppc.action.CustomerListAction.execute(CustomerListAction.java:55)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

please help me to find the solution


thanks in advance
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Did you include all the commons jar files that came with the Struts download in your WEB-INF/lib directory? If not, that's the problem.


Merrill
Consultant, Sima Solutions
harsh kulkarni
Greenhorn

Joined: May 09, 2006
Posts: 3
ya i include all jar files including commom.lang.jar to which exception is occur.
Still i am unable to find the solution.
Tell any other dependencies of hibernate
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Class not found exception in struts with hibernate
 
Similar Threads
Hi Servlet invoke error
Servlet running on Local host but throwing Exception on public server
Issue with FTP upload using org.apache.commons.net.ftp
Just new in crystal report XI
Error 500 when compiling servlet