• 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

HTTP 404 error

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Friend
I'm getting this error when I 'm trying to exceute my form.html from the the browser .
I'm typing this in my browser.
http://localhost:8080/serv1/form.html

The error is HTTP status 404 -/serv/form.html.

The requested resource (/serv1/form.html) is not available.

Actually this code worked fine foe me when I tried it a month ago.But Strangely it is not working right now.??
I've been struggling with this code since yesterday.
serv1 is the directory under webapps directory.

Can anyone tell me what could be the problem???Is it something to do with the web.xml or classpath??
I dont think so.

Shanthi
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Have you checked to make sure the app is loading if your running tomcat go to manager page and reload if it is not loading then the problem is your web.xml.
It would not be classpath seens as it is just an html page.
 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martyn
I'm gettig the form.html executed when I'm using http://localhost:8080/servlet-examples/form.html where in servlet-examples is the directory I got along with the TomCat .the path is

XXX/TomCat5.0/webapps/servlet-examples/form.html.
But when I'm trying to execute the form.html from the serv1 directory which I've created, it is not getting executed.
i dont know what's happening.

Thanks for your reply
Shanthi
 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shanthisri
yes this will work because the servlet-examples will be loaded by default so you know that one is running. Have you checked with tomcat manerger to see which apps are loading when you start tomcat if you just go to localhost/ and click manager on to left side of page it will ask you to log in then you can tell if serv1 is running just to make sure if you clik reload on that page at the very top you will get a message in plain text to tell you if it loaded ok.
if not take another look at the web.xml file for that app, just a silly little spelling mistake will stop it from loading.
 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martyn

At last
my code started working.i think I had some typos in my web.xml.I checked each and every line in my web.xml.

As you suggested ,I'm trying to go to Manager page in tomcat, it is asking me to log in.I dont know what to type in username and password fields.
Thank you very much fro your help.

Shanthi
[ January 25, 2006: Message edited by: shanthisri mocherla ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a file called tomcat-users.xml in the conf directory of Tomcat.
Check the name and password of the administrator.
 
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic