• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
siddharth das
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please tell me...what is the exact problem?

Thanks,
Siddharth
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic