This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes [org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error 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 "[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error" Watch "[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error" New topic
Author

[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Hello to all, i tried to code the following simple struts but encounter this error during run time.



index.jsp


LoginAction.java


web.xml


Besides the runtime error, there is deployment error which is


AFAIK, the scanning methodology of struts will scan the default packages named struts2 for any annotated class but i have instructed struts2 to scan in com.peter.action using init-param but still unable to find the class. It is pretty weird.

Please help.

Thanks.
Runrioter Wung
Greenhorn

Joined: Sep 03, 2011
Posts: 29
Hi,I think you should add a file named "struts.xml" in the path of "WEB-INF/classes"
peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Runrioter Wung wrote:Hi,I think you should add a file named "struts.xml" in the path of "WEB-INF/classes"


I using annotation approach rather than xml mapping approach.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error