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 09:40:33 UTC

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

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?


      

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

Posted by Florin <fl...@gmail.com>.
I've downloaded the zip archive and i've replaced the files from x64 and now it 
works!!!

Thank you!


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


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

Posted by shunhao chen <nu...@yahoo.com.cn>.
Hi Andre,
    Thanks very much. I will try the x64 bug fix in tomcat 5.5.9 first and I 
will consider seriously about the upgrade.




________________________________
发件人: André Warnier <aw...@ice-sa.com>
收件人: Tomcat Users List <us...@tomcat.apache.org>
发送日期: 2010/12/1 (周三) 6:01:16 下午
主 题: Re: How to run tomcat 5.5.9 as a service in 64-bit OS?

Mark Thomas wrote:
> 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.
> 
More details, and non-official shortcut :
If you must absolutely stay with your current Tomcat 5.5.x, then :
- download the Tomcat 5.5.31 *Core, zip version* of Tomcat 5.5.31 from here
http://tomcat.apache.org/download-55.cgi
- unzip it to a temporary directory
- in the subdirectory bin/x64, there are 2 files : tomcat5.exe and 
tcnative-1.dll.
  These are the only 2 files that change for the 64-bit version.
  On your 64-bit system, copy them over the same files in the /bin subdirectory,
  and that's it.

*BUT* as Mark says, it would be much better to start with a current 6.0 version, 
downloadable from here :
http://tomcat.apache.org/download-60.cgi

Download the *Core, 32/64-bit Windows Installer*
and install it on your 64-bit machine.  The installer will automatically detect 
the type of machine and install the correct version of the above files.
*Then*, when the 64-bit version of Tomcat 6.0 is running, make the changes you 
need to that version, to run your applications.

Do not copy your configuration files from Tomcat 5.5.x to the 6.0.x 
installation.
Start from the 6.0.x files, and make the changes in them if needed.


---------------------------------------------------------------------
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>.
Mark Thomas wrote:
> 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.
> 
More details, and non-official shortcut :
If you must absolutely stay with your current Tomcat 5.5.x, then :
- download the Tomcat 5.5.31 *Core, zip version* of Tomcat 5.5.31 from here
  http://tomcat.apache.org/download-55.cgi
- unzip it to a temporary directory
- in the subdirectory bin/x64, there are 2 files : tomcat5.exe and tcnative-1.dll.
   These are the only 2 files that change for the 64-bit version.
   On your 64-bit system, copy them over the same files in the /bin subdirectory,
   and that's it.

*BUT* as Mark says, it would be much better to start with a current 6.0 version, 
downloadable from here :
http://tomcat.apache.org/download-60.cgi

Download the *Core, 32/64-bit Windows Installer*
and install it on your 64-bit machine.  The installer will automatically detect the type 
of machine and install the correct version of the above files.
*Then*, when the 64-bit version of Tomcat 6.0 is running, make the changes you need to 
that version, to run your applications.

Do not copy your configuration files from Tomcat 5.5.x to the 6.0.x installation.
Start from the 6.0.x files, and make the changes in them if needed.


---------------------------------------------------------------------
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


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

Posted by shunhao chen <nu...@yahoo.com.cn>.
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 Mark Thomas <ma...@apache.org>.
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