• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Service Problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi experts,

I'm facing difficulties starting my tomcat 6 as a service. When I run tomcat6w.exe & click the "Start" button, I get this window "Apache Service Manager" that says "Apache is attempting to start the following service..." but after the progress bar reaches around 40%, it disappears & my service status remains as "Stopped" .

However, please note that when I run startup.bat, I'm able to bring up my application & things are just fine .

Request you to please help me out with this one...

Here's the environment:
OS: Windows Server 2003 5.2
Server: Apache Tomcat 6.0.20
JVM Version: 1.6
JRE: 1.6.0_20

Please let me know if you need any other info.

Regards,
Vidi
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would certainly expect that the logs would show some cause for the failure to start.

Bill
 
Vidya Shankar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi William,

Thanks for your reply.

I actually dont see any error logged... however, now I tried starting the service directly from my control panel->admin tools->services.

This is the error message I get: "Windows could not start the Apache Tomcat tomcat6 on Local Computer. For more information, review the System event log. If this is a non-Microsoft service, contact the service vendor, and refer to service specific error code 0"

Event log just gave "The Apache Tomcat service terminated with service-specific error 0 (0x0)"..

Any other suggestions?

Thanks,
Vidi
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vidya Shankar, it looks like your problem is an absence of msvcr71.dll file. The file is shipped with JDK, but it is not included in the Tomcat distribution. Copy msvcr71.dll to the place where the tomcat6.exe can find it. For example, copy %JAVA_HOME%\bin\msvcr71.dll to the directory where tomcat6.exe seats.
 
Vidya Shankar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply Misha.

I tried copying the dll file, it still did not help

Regards,
Vidi
 
Vidya Shankar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Thanks for your replies... finally it worked for me ..

I was running JRE earlier (its a server, not a development box)..

Anyways, tried installing JDK into it & reinstalled tomcat6... & then placed the above mentioned dll file in the tomcat's bin folder & it worked !!!

Thanks so much for all your time

Regards,
Vidi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic