On 15/10/2011 22:46, David Rush wrote:
> No, I did not uninstall the old service.  I'd like to be able to keep
> multiple Tomcat instances going at once.  Normally I do keep multiple
> instances, each installed as a service (on different ports with
> different service names), but they've always been of the exact same
> version.

It was not clear to me whether you were adding a service or replacing it.

> Would there be an issue with different Tomcat versions installed at once?

There shouldn't be.

> On my development box I did get the Tomcat Windows service to run after
> moving back to Java 6.
> 
> But my last attempt to install and run a Windows service on our staging
> machine is now failing to run as a service as well, although I'm not
> getting the commons-daemon error like before.  Again I can run it fine
> from startup.bat, and can install the service, but starting the service
> fails.  Nothing notable in stdout or stderr logs, either.  Event viewer
> says "The david2 Tomcat 7 service terminated with service-specific error
> 0 (0x0)."  Bah.
> 
> What exactly is needed for the Tomcat bootstrapping to "find" the Java
> install that it's to use?  

The service wrappers, e.g tomcat7w.exe, have a control panel with
various tabs & properties therein.

You must either run that program with a parameter so it knows which
service to refer to, or make a copy with the same name as the service,
e.g. david7w.exe and then run it.

I thought that setting JAVA_HOME in
> setenv.bat was a way, but apparently that's not used when it runs as a
> service.

See above, and:

 http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

Use the popup to select the Java version you wish to run.


p

Is it a matter of having JAVA_HOME set at the time that the
> service is created, and it "keeps" that value in the service
> configuration somehow?  Or does the JAVA_HOME env var have to be set in
> the environment of the service that's trying to run, every time it starts?
> 
> David
> 
> On 10/15/2011 10:31 AM, Pid wrote:
>> On 14/10/2011 13:16, Konstantin Kolinko wrote:
>>> 2011/10/14 David Rush<da...@rushtone.com>:
>>>> I've been running Tomcat 6.0.18 for a long time, and am now trying to
>>>> upgrade to 7.0.22 (64 bit .zip download).
>>>>
>>>> I can start Tomcat 7 with startup.bat and it's working fine.
>>>>
>>>> The script to install it as a service worked without complaint, and the
>>>> service is there.
>> Did you uninstall the old service first?
>>
>>
>> p
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to