Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Eclipse: HTTP Status 404 - The requested resource is not available.

 
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends
while i am running my code it is giving me 404 error
that requested resource is unavailable
please see it and help me to solve this .
I am attaching two screen shot of my IDE and error
following is the HTML code



following is the servlet code



following is the web.xml

screen2.png
[Thumbnail for screen2.png]
IDE structure for project
screen.png
[Thumbnail for screen.png]
error show on browser
 
Ranch Hand
Posts: 43
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please check what is the result of the below URLs?

www.localhost:8085/MSR/
www.localhost:8085/MSR/Registration
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
same error on both the URL
 
Amar Saikia
Ranch Hand
Posts: 43
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means your war file with name "MSR" is not deployed in the webapps folder of tomcat server.
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so how i resolve it ?
 
Marshal
Posts: 67430
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you put your war file?
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
currently i dont know where it is generating ?
i just configured tomcat in eclipse and make workspace and do my program
 
Bear Bibeault
Marshal
Posts: 67430
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's information that you should have posted first. I've moved this to the IDEs forum.
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you actually deploy the application from eclipse? Right Click ->Run As->Run on Server -> Select Tomcat? Also check your logs/console when you do this to see that the application is actually deploying successfully.
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
logs doesn't show any error.
i have checked it .
whenever i click run on server it direct to the browser with registration.html
but after pressing the save button it gives the http status 404 error
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you change your form action to "${pageContext.request.contextPath}/Registration"?
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry but its a html page not JSP
 
E Armitage
Rancher
Posts: 989
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sanket jani wrote:sorry but its a html page not JSP



So use action as "../Registration"
 
sanket jani
Ranch Hand
Posts: 47
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU VERY MUCH.......................

your suggestion worked for me

thank you..................E Armitage
 
    Bookmark Topic Watch Topic
  • New Topic