aspose file tools*
The moose likes Struts and the fly likes cannot find Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "cannot find Action class" Watch "cannot find Action class" New topic
Author

cannot find Action class

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
When I deploy my application on weblogic, it gives that it's not able to find Action my action class. What may be the reason?
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Could you copy/paste the exact text? thx


A good workman is known by his tools.
Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
Here' s the server log:

005-01-21 18:01:01,703 WARN [ExecuteThread: '10' for queue: 'default'] authentication.AuthenticationFilterBase (AuthenticationFilterBase.java:105) - doFilter exception: java.lang.NoClassDefFoundError: org/apache/struts/action/Action
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:401)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:162)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.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.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1094)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:437)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.imany.foundation.webapp.authentication.AuthenticationFilterBase.doFilter(AuthenticationFilterBase.java:96)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5632)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3213)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2555)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:219)
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Is struts.jar in your WEB-INF/lib directory?
Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
i am not using tomcat. I am using weblogic 7. I am creating jar and then war.
I know in tomcat there's a web-inf/lib where we place struts.jar and all struts jar files. However, what's equivalent in weblogic when we create jar and the deploy war. where should all struts.jar files go?
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
For war/web application libraries weblogic also uses WEB-INF/lib, check out bea's documentation.

Starting with WebLogic Server version 8.1 there's also APP-INF/lib in the ear for libraries used by the whole application. Check out WebLogic Server Application Classloading.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
at java.lang.ClassLoader.defineClass0(Native Method)


please check web.xml file .

you have value in load-on-startup tag = 1 ro not ?


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find Action class