File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Bell the Tomcat, someone Please! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Bell the Tomcat, someone Please!" Watch "Bell the Tomcat, someone Please!" New topic

Bell the Tomcat, someone Please!

Srikanth Madduri

Joined: Jun 19, 2000
Posts: 10
Hi folks,
I've recently jumped into the Java bandwagon and I am still trying to get my feet on the ground. I am ok with basics.
To start in JSP and Servlets, I started with the tutorials and then downloaded Tomcat 3.1 for Win 98. As expected there were lots of problems. I have changed the c:\autoexec.bat to include the CLASSPATH, JAVA_HOME, TOMCAT_HOME. I started a MS-DOS command window and ran "startup" from c:\tomcat. Another MS-DOS window popped up and a few lines were printed and ......that's it. Nothing else happens. No errors were displayed.
1. Does this mean Tomcat is running?
2. If not, is there a problem with memory allocation of the second MS-DOS window.
3. I assumed Tomcat is running. So I wrote a simple Servlet extending HTTPServlet. Also used the import javax.servlet.*; Yet it gave a compile error saying "javax.servelt.* not found and HTTPServlet not found".
Could someone give me details on how to go about using Tomcat.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
If the 2nd window outputs some lines about paths, etc and just sits there, Tomcat is probably running. The next step would be to fire up your browser and address:
You should get the default Tomcat startup page.
From this point browse the documentation and examples.
The missing javax.servlet classes sound like a JDK installation problem. You should be using JDK 1.2.2 or 1.3 - JDK1.2.1 will not work with Tomcat.
Srikanth Madduri

Joined: Jun 19, 2000
Posts: 10
Thanks a lot. Tomcat has been "Belled" successfully. I realised Tomcat was always working. I opened a browser and connected to (which I assume is the IP address of the local host). And I am able to execute a few simple Servlets.
Regarding the other problem of compiling was a sitter! I just included the import statement "import javax.servlet.http.*;" and it compiled, as the classes were in the http directory.
Now the next item on agenda is the run servlet on the Tomcat Servletrunner. Anyway, now it's easy to figure it out.
Thanks William and to all others who have written about Tomcat.
Good luck.
I agree. Here's the link:
subject: Bell the Tomcat, someone Please!
It's not a secret anymore!