Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat 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 April 10th, 2006, 02:24 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache Tomcat

Hi

I dont know how to host my webpage on Apache Tomcat(4.0.6).
What i did is
1. Created a directory named test in webapps directory
2. Pasted simplest possible jsp page that is index.jsp there
3. Tried running with URL "http://machinename:8080/test/index.jsp"

But i am getting error message

"Apache Tomcat/4.0.6 - HTTP Status 404 - /test/index.jsp"

How to resolve this.


  #2 (permalink)  
Old April 10th, 2006, 07:06 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Providing you have set up the correct directory structure
TEST
    /index.jsp
    /WEB_INF/web.xml
    /WEB-INF/LIB
    /WEB-INF/Classes

you should be able to access the URL: http://localhost:8080/Test
Tomcat should serve the index.jsp page bt default.

Carla
  #3 (permalink)  
Old April 13th, 2006, 01:49 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in webapps dir, the dir name should be same as appln. name that u r specifying in url.

It means, in tomcat's webapps, appln dir name also should be Test.

  #4 (permalink)  
Old April 19th, 2006, 07:24 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try to put your directory in Tomcat 5.0\webapps\ROOT



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache tomcat and JNI elixiradeel Apache Tomcat 0 June 5th, 2008 09:55 PM
Apache tomcat problem... joshi.sujit Apache Tomcat 0 April 15th, 2008 09:34 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Tomcat-Apache Integration puneetgt Apache Tomcat 0 January 30th, 2005 07:36 PM
Need help in connecting apache 2.0 with tomcat 4.1 rammohan Apache Tomcat 1 April 10th, 2004 06:16 PM





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