Tomcat as service - space in path in wrapper.properties - workaround

2002-10-01 Thread doug . gallob

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-10-01 Thread doug . gallob


Excellent. Thanks, Mark. I must have blown right past that when I
originally installed.




   
  
Wagoner, Mark
  
MWagoner@wildfl   To: 'Tomcat Users List'   
  
avors.com  [EMAIL PROTECTED]   
  
   cc: 
  
10/01/02 11:04 Subject: RE: Tomcat as service - space 
in path in 
AM  wrapper.properties - workaround
  
Please respond 
  
to Tomcat Users   
  
List  
  
   
  
   
  




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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 1:02 PM
To: [EMAIL PROTECTED]
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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]