struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monajit Choudhury <Monaj...@PLANETASIA.COM>
Subject Re: Class not found exception.............
Date Wed, 24 Sep 2003 12:08:11 GMT
Hi
 Thanks for ur response.I have moved the struts.jar file  to web-inf lib and
removed it from the ear file.Still I am getting the same exception.

----- Original Message -----
From: "Andrew Hill" <andrew.david.hill@gridnode.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, September 24, 2003 4:34 PM
Subject: RE: Class not found exception.............


> struts.jar must go in the WEB-INF/lib folder in your war file, and there
> must not be any other copy of struts.jar on the class path  (for example
in
> any of the app servers shared library folders) or these sort of wierd
> classloading issues can occur.
>
> -----Original Message-----
> From: Monajit Choudhury [mailto:MonajitC@PLANETASIA.COM]
> Sent: Wednesday, 24 September 2003 18:59
> To: Struts Users Mailing List
> Subject: Class not found exception.............
>
>
> Hi
>  I am trying to use struts along with weblogic8.0.
> While trying to access a page I get this following exception.
>
> java.lang.NoClassDefFoundError: org/apache/struts/action/Action
>
> at java.lang.ClassLoader.defineClass0(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>
> at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>
> at
> weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
> der.java:223)
>
> at
> weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware
> ClassLoader.java:41)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>
> at java.lang.ClassLoader.defineClass0(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>
> at
> weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericCla
> ssLoader.java:476)
>
> at
> weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
> der.java:181)
>
> at
> weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAware
> ClassLoader.java:62)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>
> at
> weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
> der.java:223)
>
> at
> weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware
> ClassLoader.java:41)
>
> at
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:2
> 07)
>
> at
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.jav
> a:231)
>
> at
> org.apache.struts.action.RequestProcessor.processActionCreate(RequestPro
> cessor.java:326)
>
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 268)
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
> rvletStubImpl.java:1053)
>
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:387)
>
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:305)
>
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
> un(WebAppServletContext.java:6310)
>
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
> bject.java:317)
>
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
> )
>
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
> etContext.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)
>
>
> I <mailto:monajitcj@planetasia.com>  have put struts.jar in the ear
> file.
> Any idea what might be causing this error
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message