• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classloader problem in a struts application.

 
Manpreeet Singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using weblogic for my application and when i start the server and try to access the page,i get classnotfound error.Whereas classpath is set properly(as system variables--i have included struts.jar and other related co--.jars there.).Someone please help.

Error 500--Internal Server Error
javax.servlet.ServletException: [HTTP:101250][ServletContext(id=11086506,name=/,context-path=)]: Servlet class org.apache.struts.action.ActionServlet for servlet action could not be loaded because a class on which it depends was not found in the classpath
-------------------------------....
java.lang.NoClassDefFoundError.
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:800)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:504)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
Manpreeet Singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i finally solved the problem.

It was a conflict of classpaths from system variables and setEnvcmd(Weblogic 8.1)[Result of extra-consciousness for classpath.]

I removed everything in classpath of system variables and it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic