Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random problem with: No action instance for path...

Status
Not open for further replies.

skolim

Programmer
Aug 4, 2006
2
PL
Hi

I have anunusuall problem withstruts application. I get "random" error message that looks like this:

-- ERROR -- ; No action instance for path /projects could be created
java.lang.ClassNotFoundException: org.apache.struts.ForwardAction
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

The problem is that i can't find out what causes this error. Sometimes when I click a link there is no error. But some times when I click the same link the error is logged, but the application works fine. Page is displayed and looks/works fine.
I've checked struts-config.xml and other files and all seems to be OK, if there was an error in these files i think application would log an error every time, and not randomly.

I would be gratefull for any suggestions...
 
Are you accessing the "projects" action from multiple points in your application?

Is it possible that you're trying to access it one way from point a and a different way from point b?

It would be interesting to see your struts-config.xml file (at least the section referring to your action in question), and also the html for the link that you're using to access the action.

-G
 
Yes I'm accesing "projects" from various places. However the fun part is that wehen I acces it from point "A" no error is logged and few moments later I acces "projects" from the same point and error is logged. Steps I take for accesing are identical every time.

I noticed that when I display projects page few times in a row i short periods of time error is more likley to appear. But doesn't appear every time. Could there be cashe or performance issues?

Here are struts-config.xml and HTML. They seem to be so simpe that there is no room for mistakes:)

struts-config.xml:
...
<!-- Process a projects action -->
<action path="/projects"
type="org.apache.struts.ForwardAction"
name="projectsForm"
scope="request"
input="/pages/project/projects.jsp"/>
...

HTML:
<html:link forward="projects" styleClass="button">
&nbsp;
<img height="15" width="15" src="../../resources/images/back.gif"/>
&nbsp;
<bean:message key="navigation.button.back"/>
</html:link>

That's the link that gives me headache. Clicking it sometimes works, and sometimes gives that error I described.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top