This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 135
  • 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
 
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: 135
  • 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: 135
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Get off me! Here, read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!