Subject: HTTP Status 404
Posted By: rivcam Post Date: 3/28/2004 2:10:27 PM
I've problems with my first jsp application. Tomcat is running well I can run the jsp examples but when I try to run my first application I get the  HTTP Status 404. I'm using Win XP Proffesional.
I've declared.
CATALINA_HOME:  C:\Java\Tomcat 4.1

Java_Home    :  C:\Java\j2sdk1.4.2_04

ClassPath    :  %CATALINA_HOME%\common\lib\servlet.jar;

Path         : %JAVA_HOME%\bin;%CATALINA_HOME%\bin;

and created the Web Folder C:\Java\Tomcat 4.1\webapps\HelloJSP

and I can't run the application wich is saved on the Folder above.

Can some body help me?  I'll appreciate any help with the topic

Jose I Rivera
Reply By: cash Reply Date: 3/28/2004 8:16:46 PM
What URL you wirte in IE-address?
Please give more message.

Reply By: rivcam Reply Date: 3/30/2004 9:29:51 PM
the url is http://localhost:8080/hellojsp/hello.jsp

Jose I Rivera
Reply By: cash Reply Date: 3/31/2004 6:31:09 AM
You created the Web Folder in C:\Java\Tomcat 4.1\webapps\HelloJSP
So the url in IE-address must be http://localhost:8080/HelloJSP/hello.jsp
If you also can't run the file, it maybe the mistake of "web.xml" that you didn't created in
C:\Java\Tomcat 4.1\webapps\HelloJSP\WEB-INF\web.xml
and if you didn't know the knowlage of xml.
You could create folder in C:\Java\Tomcat 4.1\webapps\examples\HelloJSP\hello.jsp
and url is http:://localhost:8080/examples/HelloJSP/hello.jsp
It would be work well.


Reply By: Bill Wehrs Reply Date: 4/6/2004 2:46:15 PM
Try typing in the directory exactly as it's named; case-sensitivity can burn you on Web/App servers.
Reply By: atulkumbhar Reply Date: 12/28/2005 9:37:42 AM
my web.xml is perfect.
url is perfect.
paths set are perfect .
still getting error HTTP Status 404 using XP professional

Reply By: meta_job_search Reply Date: 1/13/2006 1:10:01 PM
404 is page not found.
check the log files udner $TOMCAT_HOME/logs to see where your url is pointing to.

Nintendo Gamecube
http://www.camecube.net
Reply By: ouch Reply Date: 6/3/2008 9:32:30 PM
To get tomcat to see your webapp, from Tomcat 5.0, add a new Context fragment file with the filename to be the same as your application folder name (E.g. MyWebApp.xml). You can copy another fragment file like balancer.xml in the directory :-

  <Tomcat installation directory>\conf\Catalina\localhost

When tomcat starts up, you should see Tomcat processing this file, so that it knows where to pick up your app from.

All this information can be found in the book,

    Tomcat - The Definitive Guide, O'Reilly
    (Jason Brittain & Ian F Darwin)

Highly recommended.



Go to topic 71859

Return to index page 1