Subject: Apache Tomcat
Posted By: atul.kumar@drydentech.com Post Date: 4/10/2006 2:24:58 AM
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 By: carla Reply Date: 4/10/2006 7:06:23 AM
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 By: Mr. Ram Reply Date: 4/13/2006 1:49:11 AM
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 By: briss Reply Date: 4/19/2006 7:24:26 AM
Try to put your directory in Tomcat 5.0\webapps\ROOT


Go to topic 43115

Return to index page 310
Return to index page 309
Return to index page 308
Return to index page 307
Return to index page 306
Return to index page 305
Return to index page 304
Return to index page 303
Return to index page 302
Return to index page 301