This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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 Soft Skills this week in the Jobs Discussion 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.
I agree. Here's the link:
subject: Action class not found