Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat runs for 4 seconds and then quits

Status
Not open for further replies.

LuckyKoen

Programmer
Feb 14, 2005
57
BE
I installed Tomcat 5.5.7 on a PC with Win2000 sp 4 and j2sdk 1.4.2. Tomcat shows up in the services and when I start this service it runs for 4 seconds and then stops. The error log is empty and the service log only shows the following 4 lines :

[2005-03-17 10:42:09] [info] Starting service...
[2005-03-17 10:42:10] [info] Service started in 1331 ms.
[2005-03-17 10:42:14] [info] Run service finished.
[2005-03-17 10:42:14] [info] Procrun finished.

I also have Apache 2.0 which runs fine. (I don't have Apache 2 running when I am trying to start Tomcat)

Any ideas why Tomcat refuses to keep running ?

 
you might need JDK 1.5 for tomcat 5.5.7
also try turning debug on from server.xml to get a more detailed log.
 
I downloaded Tomcat 5.0 and that version seems to work fine. A friend of mine had no problems with running Tomcat 5.5.7 at all but he was indeed using JDK 1.5.
 
you are better off downloading jdk1.5 instead, tomcat 5.5.7 and jdk1.5 is much more optimized then their predecessors.
 
developerinlondon said:
tomcat 5.5.7 and jdk1.5 is much more optimized then their predecessors

developerinlondon :
I was interested in which specific ways this is so ?

--------------------------------------------------
Free Database Connection Pooling Software
 
I noticed several cases without specifically looking for them, eg the xml parsing of the server.xml is much simpler in 5.5.7, tomcat 5.0 seems to have a default memory limit of 64MB whereas 5.5.7 uses the whole available memory by default, jdk1.5 has an overriden version of String.replace as i mentioned on the other posts. I am sure others have found many other small but useful changes that adds up to a lot, perhaps going through the tomcat/jdk version featurelist/bugfixes will give a fuller list if one is very curious ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top