Win a copy of Learning Java by Building Android Games this week in the Android 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

http 404 resource not found error  RSS feed

 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi expert,

I have again encountered another http 404 error but this time round I really can't resolve the problem.

Please find attached my tomcat configuration.

As I know that Tomcat version 8 servlet mapping is not required so I did not specifically specify the mapping in the web.xml.

The post form I have put in the correct context path etc...

The problem:
----------------
The jsp page will appear but when I hit submit then the http 404 resource not found will appear

I hope someone can give me a clue where I had gone wrong.

Tks.
Tomcat-server-screen-shot.jpg
[Thumbnail for Tomcat-server-screen-shot.jpg]
 
Saloon Keeper
Posts: 4842
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That picture doesn't really tell us anything. What is the URL you're trying to address? And how have you mapped a resource to that URL?
 
tangara goh
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:That picture doesn't really tell us anything. What is the URL you're trying to address? And how have you mapped a resource to that URL?



Hello Tim,

I hope the attachment will let you know more about the problem.

HTTP-Status-404-error.jpg
[Thumbnail for HTTP-Status-404-error.jpg]
 
Tim Moores
Saloon Keeper
Posts: 4842
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:And how have you mapped a resource to that URL?



Also, can you access default.jsp directly via HTTP?
 
tangara goh
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:

Tim Moores wrote:And how have you mapped a resource to that URL?



Also, can you access default.jsp directly via HTTP?



Here's how I mapped it :





Nope.  I tried to access the dafault.jsp and it is giving me the same 404 resource not found error

What have I done wrongly or is there anything that I have overlooked ?
 
tangara goh
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

I'd also like to add that I do not have a default.jsp so if I tried to access default.jsp it would not be possible right ?

Is this where the problem lies ?
 
tangara goh
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to find the solution.  After I wrestled for so many hours...it seems that my j-connector was not included in the new web app ....

Tks to Jeanne for her suggestion and now my debugger is running...

Tks to you guys !!!

Only thing is the database design I am still stuck

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!