Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TomCat installation question

 
Rupak Khurana
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am just starting with in servlet world. I downloaded and installed TomCat 5.5.16 on Win 2000 machine. Under the bin folder, I dont see any bat files like startup.bat, shutdown.bat etc. The files that are present are :-

bootstrap.jar
commons-logging-api.jar
tcnative-1.dll
tomcat5.exe
tomcat5w.exe
tomcat-juli.jar

If I double click on tomcat5.exe, it runs and I can see the TomCat page if I point my browser to localhost. However if I click on the Servlets or JSP examples link, then it reports an error 404. Similarly if I introduce my own servlet under webapps, I get the same error :-

HTTP Status 404 - /servlets-examples/
---------------------------------------------------------------
type Status report
message /servlets-examples/
description The requested resource (/servlets-examples/) is not available.


Is there anything missing in my setup

-Rupak
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Tomcat forum.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a point of spelling: it's Tomcat, not TomCat. At least you didn't write TomKat. Googling that will not lead you to any quick answers about servlets
 
Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rupak,
Yes there definitely is some thing wrong with your setup. Did you install it by running installer or just by extracting from the JAR file?
Try re-installation. Also, have you set all the required class paths?

Abhishek
 
Rupak Khurana
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey this Tomcat installation sucks !

I gave another shot to install it on a different XP machine using Windows installable EXE for 5.5.16. I installed it as a service, with all the examples. I set the paths for CATALINA_HOME, JAVA_HOME etc. I rebooted the machine and after that I can see that tomcat service running. But there are no bat files in the bin folder (startup.bat, shutdown.bat). I can point to my localhost and I can see the startup page for Tomcat showing that cat(or lion). But when I click on the servlets examples link, I get 404 error. I dont know whats going on, I had changed the port number from 8080 to 80 during installation as stated in the Manning book for SCWCD.

pls enlighten me.......
 
Rupak Khurana
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I uninstalled and this time unzipped the zip file. set the paths, and run startup.bat and voila!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic