Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat 5.0.16 as a service

Mike

2003-12-04

Replies:

OK, OK. I know 5.x is SUPPOSED to have this easy to use service installer, but it's not working for me. The installation program doesn't even try to create the service (at least I can't find any evidence of it), so I'm trying to create my own using the tomcat.exe program, but when I go to start it I get this evil "The Apache Tomcat (Live) service on Local Computer started and then stopped. Some services...". No log files of any type are created. If I run startup.bat from a command line, it starts up and runs fine, but I need the service.

I'm using:

tomcat //IS//ApacheTomcatLive
--DisplayName "Apache Tomcat (Live)"
--Description "Apache Tomcat 5.0.16 - Live Instance"
--ImagePath "c:\www\live\tomcat\5.0.16\bin\bootstrap.jar"
--StartupClass org.apache.catalina.startup.Bootstrap;main;start
--ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop
--Java auto

There's no linefeeds obviously, and I've even tried adding tools.jar to the ImagePath argument as well.

Does anybody see what I'm doing wrong?

Thanks,
Mike
©2008 junlu.com - Jax Systems, LLC, U.S.A.