Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat 5.5 not starting

 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I have tomcat 5.5 on xp. I have jdk1.5. everything was working perfectly.Last week I uninstalled some of the updates (JRE updates) and tomcat has stopped starting.I have again installed jdk1.5 with update 9 and 11,10. my java_home and catalina_home are set properly.
So I am not sure which updates or what I need to make the tomcat work again.. any suggestion?

thanks in advance

Vrunda
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you seeing errors in the tomcat logs?
They're located under {tomcat install}/logs
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ben,

yes I can see the log file,it has
------------------------------------------
[2007-03-29 07:41:32] [info] Debuging Service...
[2007-03-29 07:41:32] [info] Starting service...
[2007-03-29 07:41:32] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 07:41:32] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 07:41:32] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 07:41:32] [info] Debug service finished.
[2007-03-29 07:41:32] [info] Procrun finished.
[2007-03-29 07:49:39] [info] Debuging Service...
[2007-03-29 07:49:39] [info] Starting service...
[2007-03-29 07:49:39] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 07:49:39] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 07:49:39] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 07:49:39] [info] Debug service finished.
[2007-03-29 07:49:39] [info] Procrun finished.
[2007-03-29 08:01:47] [info] Debuging Service...
[2007-03-29 08:01:47] [info] Starting service...
[2007-03-29 08:01:47] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 08:01:47] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 08:01:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 08:01:47] [info] Debug service finished.
[2007-03-29 08:01:47] [info] Procrun finished.
[2007-03-29 08:07:02] [info] Debuging Service...
[2007-03-29 08:07:02] [info] Starting service...
[2007-03-29 08:07:02] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 08:07:02] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 08:07:03] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 08:07:03] [info] Debug service finished.
[2007-03-29 08:07:03] [info] Procrun finished.
-----------------------------
does this mean I need jdk1.5.0_06 and jre1.5.0_06?
I already have jdk1.5.0_09?

these versions and numbers are so confusing
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like your JAVA_HOME environment variable is not set properly.

Type:

at a command window and make sure the path returned actually point to your JDKs root directory.
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey,

yes, it's properly pointing to jdk's root directory. I checked my path too,it had the dir jdk1.5.0_06,so I changed it to jdk1.5.0_09 restarted pc. still no luck.
the error is still the same.
-------------
[2007-03-29 10:27:38] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 10:27:38] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 10:27:38] [info] Debug service finished.
[2007-03-29 10:27:38] [info] Procrun finished.
[2007-03-29 10:33:43] [info] Debuging Service...
[2007-03-29 10:33:43] [info] Starting service...
[2007-03-29 10:33:43] [173 javajni.c] [error] The specified module could not be found.
[2007-03-29 10:33:43] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
[2007-03-29 10:33:43] [1179 prunsrv.c] [error] ServiceStart returned 1
[2007-03-29 10:33:43] [info] Debug service finished.
[2007-03-29 10:33:43] [info] Procrun finished.
----------------
why is it still looking for jre1.5.0_06?

Vrunda
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
It worked out!!!
the tomcat\bin has a tomcat5w.exe file. I don't know what it is, but as I was trying, I clicked on it,it has options for some properties to set. One of these is for Java (JVM),which was set to jre1.5.0_06\bin\client\jvm.dll, so I changed it to the current one that I have (jre1.5.0_11\bin\client\jvm.dll).and it's started working now.

I don't remember changing this setting when I had installed tomcat.
anyways..
thanks for your help though

Vrunda
 
Robin MacFarlane
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran into the same trouble and found this thread really useful:

http://forum.java.sun.com/thread.jspa?threadID=5121172&start=0&tstart=0

Adding C:\Program Files\Java\jdk1.6.0_05\bin to the 'path' environment variable and restarting did the trick for me, but others on the thread mention copying msvcr71.dll from C:\Program Files\Java\jre1.6.0_05\bin
to C:\winnt\system32 worked.

According to the tread, the issue only seems to occur on WIN2K.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic