Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 28th, 2004, 03:10 PM
Registered User
 
Join Date: Mar 2004
Location: , New Jersey, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #2 (permalink)  
Old March 28th, 2004, 09:16 PM
Authorized User
 
Join Date: Feb 2004
Location: Jilin, Jilin, China.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to cash
Default

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

  #3 (permalink)  
Old March 30th, 2004, 10:29 PM
Registered User
 
Join Date: Mar 2004
Location: , New Jersey, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Jose I Rivera
  #4 (permalink)  
Old March 31st, 2004, 07:31 AM
Authorized User
 
Join Date: Feb 2004
Location: Jilin, Jilin, China.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to cash
Default

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.


  #5 (permalink)  
Old April 6th, 2004, 02:46 PM
Registered User
 
Join Date: Apr 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try typing in the directory exactly as it's named; case-sensitivity can burn you on Web/App servers.
  #6 (permalink)  
Old December 28th, 2005, 10:37 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #7 (permalink)  
Old January 13th, 2006, 02:10 PM
Authorized User
 
Join Date: Oct 2005
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #8 (permalink)  
Old June 3rd, 2008, 09:32 PM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.




Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP status 404-Servlet action is not available matrixbegins Struts 0 October 24th, 2007 11:09 PM
http 404 brenden J2EE 1 February 16th, 2006 05:44 AM
Status 404 for 404 page marun BOOK: Professional Apache Tomcat 0 August 30th, 2005 06:45 AM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 04:50 PM
HTTP status 404 brianjs JSP Basics 2 October 26th, 2003 03:06 PM





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