wood burning stoves 2.0*
The moose likes Struts and the fly likes Action class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class not found" Watch "Action class not found" New topic

Action class not found

Mnau Lubi
Ranch Hand

Joined: Mar 17, 2010
Posts: 32

I am having a really strange error. I changed the name of an action class. Afterwards, I changed the name in the struts-config.xml, so that the system knows how to access to the new Action class. However, when the browser must access that action I get a:

I don't know why it can't find it. In struts-config.xml, if I press Ctrl and place the mouse on the Action class, I get a link to the Action class!

Please help, I am sure it is a very silly mistake.
Mnau Lubi
Ranch Hand

Joined: Mar 17, 2010
Posts: 32
Solved! I cleaned and rebuilt the project and it works now . Just one question, I get a red cross in the project folder, as if I am having an error somewhere in the project but then, there is no folder or package with the red cross. Is there any way to know exactly where the error is?

David Newton

Joined: Sep 29, 2008
Posts: 12617

Please ask IDE questions in the IDE forum.

And when you do, it'd be a good idea to mention which IDE you're using, otherwise it's really difficult to give a meaningful answer. In Eclipse, look in the "Problems" tab.
Don't get me started about those stupid light bulbs.
subject: Action class not found
Similar Threads
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope
Is there a way to pass parameters dynamically to forward tag in struts-config.xml
Struts Problem in the March Article
call Action when a JSP is called
setAttribute doesnot work during Forward action