• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please tell me...what is the exact problem?

Thanks,
Siddharth
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic