Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 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 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.


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

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

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
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



All times are GMT -4. The time now is 11:58 PM.


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