File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Why Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why "Cannot find global ActionForward for name welcome"" Watch "Why "Cannot find global ActionForward for name welcome"" New topic
Author

Why "Cannot find global ActionForward for name welcome"

yu scott
Greenhorn

Joined: Jun 27, 2003
Posts: 5
Hi:
I'm using Tomcat5.0.3 & Struts1.1, and i use the example LOGON.WAR, shipping with <<struts in Action>> .
My Struts-configure.xml is :
...........
<global-forwards>
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
<action-mappings>
<action
path="/Welcome.do"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Welcome.jsp"/>
...........
</action-mappings>
</struts-config>
When i execute my application as http://localhost:8080/logon and i got following error:
javax.servlet.ServletException: Cannot find global ActionForward for name welcome
at org.apache.jasper.runtime.PageContextImpl. handlePageException(PageContextImpl.java:685)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)

Why ???
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Welcome to JavaRanch "linuxz". I hope someone can give you a solution to your problem. While you are waiting, please review the JavaRanch Naming Policy and change your displayed name. You can change it here.
Thanks,
-Barry
[ December 02, 2003: Message edited by: Barry Gaunt ]
[ December 02, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Baochuan Lu
Greenhorn

Joined: Mar 24, 2004
Posts: 1
Hi scott:
I met the same problem as you did. Please check your struts-config.xml VERY carefully. I had an extra character in the file which caused the problem.
Hope it will help. Let me know if you are not clear about what I'm saying.
God luck!
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Remove the slash from your path attribute.


A good workman is known by his tools.
Jean-Sebastien Abella
Ranch Hand

Joined: Jul 29, 2005
Posts: 60
I don't!
Jean-Sebastien Abella
Ranch Hand

Joined: Jul 29, 2005
Posts: 60
Hi,
I fixed this problem by updating my lib. (Struts.jar and apache-commons-???.jar)
Sammy Chen
Greenhorn

Joined: Nov 28, 2008
Posts: 3
Hi,

This is version conflict problem. Check if your the version of jdk in the server is same as the jdk in your development IDE. please note some IDE like Myeclipse set a default version jdk.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why "Cannot find global ActionForward for name welcome"