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
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.
Joined: Jun 19, 2000
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