wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts2 in eclipse 3.4 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 "Struts2 in eclipse 3.4" Watch "Struts2 in eclipse 3.4" New topic
Author

Struts2 in eclipse 3.4

Michael Lee Jordan
Greenhorn

Joined: Sep 03, 2008
Posts: 14
I am new To eclipse and struts2

I tried to run the simple application "hello world" with struts in Eclipse. The server is Tomcat6. However, keep getting this error

SEVERE: Could not find action or result
There is no Action mapped for namespace / and action name HelloWorld.

Seems like there is a mapping problem -- just could not figure out what. seems like some other people have run into similar ones,but could not find the fix so far. How should struts2 be used within Eclipse? Eclipse has been said to be very good -- but since I started to use it, I found a lot of frustrations.

Any advice? opinion? redirecting to the right source?

Thanks very much

MLJ
Jair Rillo Junior
Ranch Hand

Joined: Aug 27, 2008
Posts: 114
Certainly the problem is in the mapping file (struts.xml). Do not blame eclipse for that issue.

I really advice you to check again the web.xml, struts.xml and which JARs files are in your classpath (WEB-INF/lib) folder.

Although Struts 2 documentation is not clear enough, I advice you to check out other documentation resource in the internet, like this one: http://www.roseindia.net/struts/struts2/index.shtml.


Regards, Jair Rillo Junior
http://www.jairrillo.com/blog, SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 5.0, IBM SOA Associate (Test 664).
Michael Lee Jordan
Greenhorn

Joined: Sep 03, 2008
Posts: 14
thanks, that's ture -- it was the location of struts.xml. Has been resolved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 in eclipse 3.4
 
Similar Threads
Struts2 with Display tag issue
JDK, Eclipse, Struts2, Ant, Oracle Environment setup
Struts2 and Eclipse: No configuration found for the specified action in namespace: ''
Jsp is not displaying in Struts2
Package Struts2 actions/supported code in a jar?