This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread 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
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 23
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: [org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error
 
Similar Threads
Struts2 config error
Struts2 "There is no Action mapped for namespace / and action name LoginAction ERROR"
problem in Struts2 while running an application
Struts2 Helloworld Problem
Struts2: No configuration found for the specified action