| Author |
The requested resource (/welcome) is not available." HTTP Status 404 - /welcome
|
siddharth das
Ranch Hand
Joined: Aug 17, 2007
Posts: 123
|
|
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: 123
|
|
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: 123
|
|
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/
|
 |
 |
|
|
subject: The requested resource (/welcome) is not available." HTTP Status 404 - /welcome
|
|
|