This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes The requested resource (/welcome) is not available. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "The requested resource (/welcome) is not available." HTTP Status 404 - /welcome" Watch "The requested resource (/welcome) is not available." HTTP Status 404 - /welcome" New topic
Author

The requested resource (/welcome) is not available." HTTP Status 404 - /welcome

siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
Hi,
I developed a simple struts(1.1) based application using Eclipse 3.4.
I copied the required struts required jar file in the lib folder in WEB-INF.
But when I am going to run the application, I found "The requested resource (/welcome) is not available." HTTP Status 404 - /welcome.

The contents of web.xml is


The contents of struts-config.xml is

The contents of index.jsp


Also I developed the remaining components accordingly..

Can you please tell,what is the problem?
Thanks,
Siddharth
srikanth arroju
Ranch Hand

Joined: Aug 02, 2006
Posts: 66
Dear Siddharth,

please check your url. and i did not find the mapping of index.jsp in struts-config.xml. as per web.xml your
url should end with .do extension.
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
But still it shows the error 'The requested resource (/welcome.do) is not available'

I checked by adding .do extension in struts-config.xml and struts-config.xml
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
Can you please tell me...what is the exact problem?

Thanks,
Siddharth
sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
Hi siddharth,

you are travelling in wrong direction.you will not reach your home.
In struts-config.xml file you have mapped for welcome.jsp but actually you are trying to run the index.jsp
How it will work.

Either change your jsp name or change the struts-config.xml file.

I will tell you one simple thing
just follow blindly
add this tag inside your web.xml file


Restart the server and run your application.
http://localhost:[port Number]/warFileName
give port number and warFileName accordingly.
It will work.

If you face the problem reply me back.


For java examples,ebooks,interview questions,visit this blog
http://periodicupdates.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The requested resource (/welcome) is not available." HTTP Status 404 - /welcome
 
Similar Threads
I think execute method is not executed...(confused)
Apache + Tomcat + JSF? ***newbee
how the value in the form pass into Action class in Struts
struts 1.beginner, code not working
NullPointerException: Module 'null' not found