wood burning stoves 2.0*
The moose likes Servlets and the fly likes Problem Configuring Tomcat 5.0.28 for Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem Configuring Tomcat 5.0.28 for Servlets" Watch "Problem Configuring Tomcat 5.0.28 for Servlets" New topic
Author

Problem Configuring Tomcat 5.0.28 for Servlets

Parth Bhatt
Ranch Hand

Joined: Oct 19, 2005
Posts: 58
Hi !!
Can somebody help me out with configuring tomcat 5.0.28 for servlets...
I'm using Windows XP and jdk1.5....

The servelet class file has been copied to webapps/servelets-examples/web-inf/classes and servelet name and mappings have also been defined in web.xml Also, the javahome veriable is also defined.

When i run startup.bat it shows a lot of exceptions

After all this, when i try to run a servlet it shows a 404 Error !!

I need a detailed procedure of configuring the tomcat server and running a servelet....


If your new Big Idea doesn't scare the hell out of you, <br />it's probably not a "new Big Idea".
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The firstApp tutorial does a good job of explaining the directory structure of a J2EE webapp.
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html

It's also explained here:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

NOTE: "WEB-INF" needs to be typed in upper case.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Parth Bhatt
Ranch Hand

Joined: Oct 19, 2005
Posts: 58
Thanks Ben....!!
Its gonna help me big deal...!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Configuring Tomcat 5.0.28 for Servlets