my dog learned polymorphism*
The moose likes Struts and the fly likes classloader problem in a struts application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "classloader problem in a struts application." Watch "classloader problem in a struts application." New topic

classloader problem in a struts application.

Manpreeet Singh

Joined: Dec 14, 2004
Posts: 2
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
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
at weblogic.servlet.internal.ServletStubImpl.getServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(
Manpreeet Singh

Joined: Dec 14, 2004
Posts: 2
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:
subject: classloader problem in a struts application.
Similar Threads
How can i resolve this exception
Some problems with Log4J
Unable to run a servlet from browser - 404 error
Upload Image to database through Servlet
Eror 500- Server are not find the jar file in the program of upload the file