Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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.

Reply With Quote
  #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
Reply With Quote
  #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.


Reply With Quote
  #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.
Reply With Quote
  #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

Reply With Quote
  #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
Reply With Quote
  #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.


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.