File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Bell the Tomcat, someone Please!" Watch "Bell the Tomcat, someone Please!" New topic
Author

Bell the Tomcat, someone Please!

Srikanth Madduri
Greenhorn

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.
Doubts
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.
cheers
srikanth
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
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:
http://localhost:8080/
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.

Java Resources at www.wbrogden.com
Srikanth Madduri
Greenhorn

Joined: Jun 19, 2000
Posts: 10
William,
Thanks a lot. Tomcat has been "Belled" successfully. I realised Tomcat was always working. I opened a browser and connected to http://127.0.0.1:8080/ (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 servlets......it 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.
srikanth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bell the Tomcat, someone Please!
 
Similar Threads
Tomcat configuration problem
"This page cannot be displayed" error
http://localhost:8080/ --> HTTP 500 - Internal server error - Anyone?
Tomcat with Windows 98 installation issue
Can't install Tomcat. MS-DOS .bat file proglem. Please help.