You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Wagoner, Mark" <MW...@wildflavors.com> on 2002/10/01 19:04:44 UTC

RE: Tomcat as service - space in path in wrapper.properties - wor karound

An even easier solution is to select the "NT Service" option when installing
Tomcat.  Then you don't even need jk_nt_service.

-----Original Message-----
From: doug.gallob@ihs.com [mailto:doug.gallob@ihs.com]
Sent: Tuesday, October 01, 2002 1:02 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat as service - space in path in wrapper.properties -
workaround


I didn't see this specific topic or workaround in the archives so thought I
would share - since it seems like this could be a fairly common problem. I
hope it saves someone a little time troubleshooting.

_Situation_: Attempting to run tomcat 4.0.4 as a service on NT4.0 SP6 using
jk_nt_service.exe.
     May apply to other versions of Tomcat and Windows as well.

_Symptoms_: Command "jk_nt_service -i tomcat -a wrappers.properties" adds
the service just fine, but attempting to start the service with command
"jk_nt_service -s tomcat" or from NT Services panel fails.

_Most Likely Cause_ (Of course you may have other problems that I don't
know about, but this one will definitely hang you up): Spaces in your path
definitions. For example, I originally had the setting:

     wrapper.tomcat_home=d:\Program Files\Apache Tomcat 4.0

Quoting the path with double or single quotes will not rectify the problem
either.

_Workaround_: Use "Dir  -X" to find the short (DOS 8.3) names of your
directories and use those instead. For example, my new path setting is:

     wrapper.tomcat_home=d:\PROGRA~1\APACHE~1.0

This will eliminate the spaces and the service will start happily. If this
doesn't solve your problem, then you've got something else wrong and I
can't help you.

Good Luck

Doug





--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>