You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by shunhao chen <nu...@yahoo.com.cn> on 2010/12/01 11:05:55 UTC

回复: How to run tomcat 5.5.9 as a service in 64-bit OS?

Hi Mark,
    Many thanks for your reply. Upgrading seems is a good choice, but my app was 
running since 2005, it is stable and I have not plan to upgrade tomcat. As we 
known, we usually use the tomcat.exe to install tomcat service as a window 
service.So, if I choose to upgrade the service wrapper using commons-daemon,  is 
it means I need to re-generate the tomcate.exe? Any instructions?  
    



________________________________
发件人: Mark Thomas <ma...@apache.org>
收件人: Tomcat Users List <us...@tomcat.apache.org>
发送日期: 2010/12/1 (周三) 4:55:28 下午
主 题: Re: How to run tomcat 5.5.9 as a service in 64-bit OS?

On 01/12/2010 08:40, shunhao chen wrote:
> Hi all,
>    I have a web app using tomcat 5.5.9 as app server. All works well in 32-bit 

> OS. But now I have to support this app running on 64-bit OS. So I change the 
>JDK 
>
> to use a 64-bit version(jdk1.5.0_22). All works well, but when I run tomcat as 
>a 
>
> service, it fails. 
> 
>    Can anybody help?

5.5.9 is very old and has a number of known security vulnerabilities.
You should consider upgrading.

The architecture of the service wrapper must match the architecture of
the JVM so you'll need the 64-bit service wrapper. You can get that from
the latest commons-daemon download.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

Re: 回复: How to run tomcat 5.5.9 as a service in 64-bit OS?

Posted by André Warnier <aw...@ice-sa.com>.
shunhao chen wrote:
> Hi Mark,
>     Many thanks for your reply. Upgrading seems is a good choice, but my app was 
> running since 2005, it is stable and I have not plan to upgrade tomcat. As we 
> known, we usually use the tomcat.exe to install tomcat service as a window 
> service.So, if I choose to upgrade the service wrapper using commons-daemon,  is 
> it means I need to re-generate the tomcate.exe? Any instructions?  
>     
tomcat5.exe (or tomcat6.exe) *is* the service wrapper.
It is just renamed to tomcat5.exe or tomcat6.exe.

So you do not have to regenerate anything, you already have it.

Tomcat is a Java application.
It is run by the Java JVM.
In the Windows Service environment, the Java JVM is started by the wrapper (tomcatX.exe), 
according to parameters preset in the Registry.
The wrapper tomcatX.exe is an executable Windows program, therefor it must match the type 
of machine (32-bit or 64-bit).


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org