p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   JSP Basics (http://p2p.wrox.com/forumdisplay.php?f=92)
-   -   HTTP Status 404 (http://p2p.wrox.com/showthread.php?t=11088)

rivcam March 28th, 2004 03:10 PM

HTTP Status 404
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

cash March 28th, 2004 09:16 PM

What URL you wirte in IE-address?
Please give more message.

rivcam March 30th, 2004 10:29 PM

the url is http://localhost:8080/hellojsp/hello.jsp

Jose I Rivera

cash March 31st, 2004 07:31 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.

Bill Wehrs April 6th, 2004 02:46 PM

Try typing in the directory exactly as it's named; case-sensitivity can burn you on Web/App servers.

atulkumbhar December 28th, 2005 10:37 AM

my web.xml is perfect.
url is perfect.
paths set are perfect .
still getting error HTTP Status 404 using XP professional

meta_job_search January 13th, 2006 02:10 PM

404 is page not found.
check the log files udner $TOMCAT_HOME/logs to see where your url is pointing to.

Nintendo Gamecube

ouch June 3rd, 2008 09:32 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.

All times are GMT -4. The time now is 11:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.