Discussion:
Mini HOW-TO: Tomcat as a service on Windows Server 2003 64-bit edition
Richard Mundell
2006-06-05 15:02:33 UTC
Permalink
Dear all,

While Tomcat will run happily on a 64-bit edition of Windows by running it
directly through a 64-bit build of Java, the native Windows "Service"
support which is bundled with Tomcat 5.5.x is presently 32-bit only.

The reason to run Tomcat in a 64-bit environment is to run with large memory
allocations (we have the requirement to run with around 4GB of heap space).
At best you can squeeze about 1.5GB of heap allocation in a Windows 32-bit
environment. To run larger than that you'll need a 64-bit CPU and OS.

There's a couple of outstanding 'bugzilla' tickets (35869 & 39327)
requesting this support but the Tomcat developers obviously haven't had a
chance to build it into the core package yet.

So, in the meantime, for anyone attempting to run Tomcat in 64-bit mode in
Windows so save you the pain and extensive Googling to find a solution,
here's a (very) brief HOW-TO. (Note that I've got this working on Windows
2003 Server Standard 64-bit edition on an Intel chipset - I'd imagine the
same instructions would work fine on AMD environments and XP 64-bit).

1) Download and install the 64 bit edition of Java for Windows
2) Download and install the 32 bit version of Tomcat 5.5.x for Windows
3) Recompile 'procrun' (which is the binary $CATALINA_ROOT/bin/Tomcat5.exe
in the Windows distribution) using the patch listed in Bugzilla ticket 39327
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39327) and replace
Tomcat5.exe with the newly compiled "prunsrv.exe".
4) Add the registry keys to Windows which are listed at the end of this
email (don't forget to adjust them to use your server's paths for the JVM
and Tomcat).
5) Using regedit, edit the HKLM\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Java\Options and adjust for memory settings
appropriate to your environment.
6) Start (or restart) the Apache Tomcat service. Note that although you can
stop/start the Tomcat service via the bundled Tomcat service helper, if you
need to change its configuration you will need to manually edit the registry
key mentioned in step 5.

Of course, the hardest part of this (for non-developers) is recompiling
procrun. I'd be very happy to mail you a copy of the compiled binary (for
Intel 64-bit Xeon and AMD 64-bit chipsets) that the contributor of the patch
in ticket 39237 very kindly provided for me.

This is intended as a stop-gap while the Tomcat developers implement this
into the core Windows distribution.

Good luck!

Richard
___________________________
Richard Mundell
The Roberts Group
Market Data Expertise that FITS.
www.trgrp.com

----------------------------------------------------------------------------
----------

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Java]
"Jvm"="C:\\jdk\\jre\\bin\\server\\jvm.dll"
"Classpath"="C:\\tomcat\\bin\\bootstrap.jar"
"Options"=hex(7):2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,61,00
,\

2e,00,68,00,6f,00,6d,00,65,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,\

00,66,00,69,00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,\

61,00,74,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,65,00,6e,00,64,\

00,6f,00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72,00,73,00,3d,00,43,00,\

3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,00,74,00,73,00,77,00,65,00,62,\

00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,5c,00,63,00,6f,00,6d,00,6d,00,\

6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72,00,73,00,65,00,64,00,00,00,2d,\

00,44,00,6a,00,61,00,76,00,61,00,2e,00,69,00,6f,00,2e,00,74,00,6d,00,70,00,\

64,00,69,00,72,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,\

00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,\

5c,00,74,00,65,00,6d,00,70,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,\

00,75,00,74,00,69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,00,\

2e,00,6d,00,61,00,6e,00,61,00,67,00,65,00,72,00,3d,00,6f,00,72,00,67,00,2e,\

00,61,00,70,00,61,00,63,00,68,00,65,00,2e,00,6a,00,75,00,6c,00,69,00,2e,00,\

43,00,6c,00,61,00,73,00,73,00,4c,00,6f,00,61,00,64,00,65,00,72,00,4c,00,6f,\

00,67,00,4d,00,61,00,6e,00,61,00,67,00,65,00,72,00,00,00,2d,00,58,00,58,00,\

3a,00,4d,00,61,00,78,00,50,00,65,00,72,00,6d,00,53,00,69,00,7a,00,65,00,3d,\

00,32,00,35,00,36,00,6d,00,00,00,2d,00,58,00,58,00,3a,00,52,00,65,00,73,00,\

65,00,72,00,76,00,65,00,64,00,43,00,6f,00,64,00,65,00,43,00,61,00,63,00,68,\

00,65,00,53,00,69,00,7a,00,65,00,3d,00,31,00,32,00,38,00,6d,00,00,00,2d,00,\
58,00,6d,00,78,00,33,00,30,00,37,00,32,00,6d,00,00,00,00,00
"JvmMs"=dword:00000000
"JvmMx"=dword:00000000
"JvmSs"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Log]
"Path"="C:\\tomcat\\logs"
"StdError"="auto"
"StdOutput"="auto"
"Level"="Error"

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Start]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,61,00,72,00,74,00,00,00,00,00
"Mode"="jvm"

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Stop]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,6f,00,70,00,00,00,00,00
"Mode"="jvm"

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.5]
"InstallPath"="C:\\tomcat"
"Version"="5.5.9"



---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Swapnil.Kale
2007-10-16 22:55:31 UTC
Permalink
Hi there,
Thanks a lot for this meaningful info.

I too have a similar requirement:
running the Tomcat on 64 bit OS <Windows server 2003 / 64 bit Xeon 1.6GHz,
8G RAM>

I followed the commands below <given in your thread>.
I installed the 64 bit JRE from Sun, Installed 32 bit tomcat.
Edited all the necessary values in the registry for the node "Wow6432Node"

I copied the 64bit compiled exe from bugzilla <link given by you>.

However i'm now getting a strange error when i try to run the exe from the
command line or try to run the tomcat from the services.msc.

<Snapshot>

C:\Tomcat55\bin>tomcat5.exe
[2007-10-16 17:39:16] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:39:16] [1246 prunsrv.c] [error]
Load configuration failed

C:\Tomcat55\bin>prunsrv.exe
[2007-10-16 17:41:40] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:41:40] [1246 prunsrv.c] [error]
Load configuration failed

C:\Tomcat55\bin>tomcat5.exe.64bit
[2007-10-16 17:41:51] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:41:51] [1246 prunsrv.c] [error]
Load configuration failed

However the tomcat5w.exe <original> runs fine and the service window opens
up. I tried running the server from there, but no luck there/

I confirmed all the entries once again in the registry.

Have you encountered similar problem?

Please suggest input. I'm stuck now.....

Thanks in advance.

Swapnil
Post by Richard Mundell
Dear all,
While Tomcat will run happily on a 64-bit edition of Windows by running it
directly through a 64-bit build of Java, the native Windows "Service"
support which is bundled with Tomcat 5.5.x is presently 32-bit only.
The reason to run Tomcat in a 64-bit environment is to run with large memory
allocations (we have the requirement to run with around 4GB of heap space).
At best you can squeeze about 1.5GB of heap allocation in a Windows 32-bit
environment. To run larger than that you'll need a 64-bit CPU and OS.
There's a couple of outstanding 'bugzilla' tickets (35869 & 39327)
requesting this support but the Tomcat developers obviously haven't had a
chance to build it into the core package yet.
So, in the meantime, for anyone attempting to run Tomcat in 64-bit mode in
Windows so save you the pain and extensive Googling to find a solution,
here's a (very) brief HOW-TO. (Note that I've got this working on Windows
2003 Server Standard 64-bit edition on an Intel chipset - I'd imagine the
same instructions would work fine on AMD environments and XP 64-bit).
1) Download and install the 64 bit edition of Java for Windows
2) Download and install the 32 bit version of Tomcat 5.5.x for Windows
3) Recompile 'procrun' (which is the binary $CATALINA_ROOT/bin/Tomcat5.exe
in the Windows distribution) using the patch listed in Bugzilla ticket 39327
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39327) and replace
Tomcat5.exe with the newly compiled "prunsrv.exe".
4) Add the registry keys to Windows which are listed at the end of this
email (don't forget to adjust them to use your server's paths for the JVM
and Tomcat).
5) Using regedit, edit the HKLM\SOFTWARE\Apache Software
Foundation\Procrun
2.0\Tomcat5\Parameters\Java\Options and adjust for memory settings
appropriate to your environment.
6) Start (or restart) the Apache Tomcat service. Note that although you can
stop/start the Tomcat service via the bundled Tomcat service helper, if you
need to change its configuration you will need to manually edit the registry
key mentioned in step 5.
Of course, the hardest part of this (for non-developers) is recompiling
procrun. I'd be very happy to mail you a copy of the compiled binary (for
Intel 64-bit Xeon and AMD 64-bit chipsets) that the contributor of the patch
in ticket 39237 very kindly provided for me.
This is intended as a stop-gap while the Tomcat developers implement this
into the core Windows distribution.
Good luck!
Richard
___________________________
Richard Mundell
The Roberts Group
Market Data Expertise that FITS.
www.trgrp.com
----------------------------------------------------------------------------
----------
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Java]
"Jvm"="C:\\jdk\\jre\\bin\\server\\jvm.dll"
"Classpath"="C:\\tomcat\\bin\\bootstrap.jar"
"Options"=hex(7):2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,61,00
,\
2e,00,68,00,6f,00,6d,00,65,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,\
00,66,00,69,00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,\
61,00,74,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,65,00,6e,00,64,\
00,6f,00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72,00,73,00,3d,00,43,00,\
3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,00,74,00,73,00,77,00,65,00,62,\
00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,5c,00,63,00,6f,00,6d,00,6d,00,\
6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72,00,73,00,65,00,64,00,00,00,2d,\
00,44,00,6a,00,61,00,76,00,61,00,2e,00,69,00,6f,00,2e,00,74,00,6d,00,70,00,\
64,00,69,00,72,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,\
00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,\
5c,00,74,00,65,00,6d,00,70,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,\
00,75,00,74,00,69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,00,\
2e,00,6d,00,61,00,6e,00,61,00,67,00,65,00,72,00,3d,00,6f,00,72,00,67,00,2e,\
00,61,00,70,00,61,00,63,00,68,00,65,00,2e,00,6a,00,75,00,6c,00,69,00,2e,00,\
43,00,6c,00,61,00,73,00,73,00,4c,00,6f,00,61,00,64,00,65,00,72,00,4c,00,6f,\
00,67,00,4d,00,61,00,6e,00,61,00,67,00,65,00,72,00,00,00,2d,00,58,00,58,00,\
3a,00,4d,00,61,00,78,00,50,00,65,00,72,00,6d,00,53,00,69,00,7a,00,65,00,3d,\
00,32,00,35,00,36,00,6d,00,00,00,2d,00,58,00,58,00,3a,00,52,00,65,00,73,00,\
65,00,72,00,76,00,65,00,64,00,43,00,6f,00,64,00,65,00,43,00,61,00,63,00,68,\
00,65,00,53,00,69,00,7a,00,65,00,3d,00,31,00,32,00,38,00,6d,00,00,00,2d,00,\
58,00,6d,00,78,00,33,00,30,00,37,00,32,00,6d,00,00,00,00,00
"JvmMs"=dword:00000000
"JvmMx"=dword:00000000
"JvmSs"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Log]
"Path"="C:\\tomcat\\logs"
"StdError"="auto"
"StdOutput"="auto"
"Level"="Error"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Start]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,61,00,72,00,74,00,00,00,00,00
"Mode"="jvm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Stop]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,6f,00,70,00,00,00,00,00
"Mode"="jvm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat]
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.5]
"InstallPath"="C:\\tomcat"
"Version"="5.5.9"
---------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tf1735687.html#a13244048
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Swapnil.Kale
2008-04-25 15:42:37 UTC
Permalink
Hey folks,
Finally i found the one i wanted. Did a google recently and found this: If
you are looking for 64 bit amd exe for tomcat here is the solution.

Background

To install Tomcat in a 64bit architecture, download the ZIP installer from
the Apache web site and unzipped.

At this point
• Tomcat can be started by using startup.bat or shutdown using shutdown.bat
• Tomcat can not be used as a Windows service since Tomcat6.exe and
Tomcat6w.exe are intended for 32bit hardware

Steps

1) Download from the Apache repository the corresponding version of
Tomcat6.exe and Tomcat6w.exe for your platform

If your platform is AMD64 (This will work with Intel processors based an
AMD64)
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/

If your platform is Itanium, use
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/ia64/

2) Rename/save the existing Tomcat6.exe and Tomcat6w.exe from your
%CATALINA_HOME%\bin directory

3) Move the downloaded copies to %CATALINA_HOME%\bin

4) From the command prompt, install Tomcat as a service, running the
following command

Service.bat install


5) Before Tomcat is started, make sure you have allocated enough memory to
Tomcat

Double-click Tomcat6w.exe and set the memory sizes required

6) Now you can start Tomcat as a service. You could use any of the following
methods:

• From Start  Settings  Control Panel  Administrative Tools  Services
• Use the General tab in the Apache Tomcat Properties window
Post by Swapnil.Kale
Hi there,
Thanks a lot for this meaningful info.
running the Tomcat on 64 bit OS <Windows server 2003 / 64 bit Xeon 1.6GHz,
8G RAM>
I followed the commands below <given in your thread>.
I installed the 64 bit JRE from Sun, Installed 32 bit tomcat.
Edited all the necessary values in the registry for the node "Wow6432Node"
I copied the 64bit compiled exe from bugzilla <link given by you>.
However i'm now getting a strange error when i try to run the exe from the
command line or try to run the tomcat from the services.msc.
<Snapshot>
C:\Tomcat55\bin>tomcat5.exe
[2007-10-16 17:39:16] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:39:16] [1246 prunsrv.c] [error]
Load configuration failed
C:\Tomcat55\bin>prunsrv.exe
[2007-10-16 17:41:40] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:41:40] [1246 prunsrv.c] [error]
Load configuration failed
C:\Tomcat55\bin>tomcat5.exe.64bit
[2007-10-16 17:41:51] [402 prunsrv.c] [error]
The system cannot find the file specified.
[2007-10-16 17:41:51] [1246 prunsrv.c] [error]
Load configuration failed
However the tomcat5w.exe <original> runs fine and the service window opens
up. I tried running the server from there, but no luck there/
I confirmed all the entries once again in the registry.
Have you encountered similar problem?
Please suggest input. I'm stuck now.....
Thanks in advance.
Swapnil
Post by Richard Mundell
Dear all,
While Tomcat will run happily on a 64-bit edition of Windows by running it
directly through a 64-bit build of Java, the native Windows "Service"
support which is bundled with Tomcat 5.5.x is presently 32-bit only.
The reason to run Tomcat in a 64-bit environment is to run with large memory
allocations (we have the requirement to run with around 4GB of heap space).
At best you can squeeze about 1.5GB of heap allocation in a Windows 32-bit
environment. To run larger than that you'll need a 64-bit CPU and OS.
There's a couple of outstanding 'bugzilla' tickets (35869 & 39327)
requesting this support but the Tomcat developers obviously haven't had a
chance to build it into the core package yet.
So, in the meantime, for anyone attempting to run Tomcat in 64-bit mode in
Windows so save you the pain and extensive Googling to find a solution,
here's a (very) brief HOW-TO. (Note that I've got this working on Windows
2003 Server Standard 64-bit edition on an Intel chipset - I'd imagine the
same instructions would work fine on AMD environments and XP 64-bit).
1) Download and install the 64 bit edition of Java for Windows
2) Download and install the 32 bit version of Tomcat 5.5.x for Windows
3) Recompile 'procrun' (which is the binary
$CATALINA_ROOT/bin/Tomcat5.exe
in the Windows distribution) using the patch listed in Bugzilla ticket 39327
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39327) and replace
Tomcat5.exe with the newly compiled "prunsrv.exe".
4) Add the registry keys to Windows which are listed at the end of this
email (don't forget to adjust them to use your server's paths for the JVM
and Tomcat).
5) Using regedit, edit the HKLM\SOFTWARE\Apache Software
Foundation\Procrun
2.0\Tomcat5\Parameters\Java\Options and adjust for memory settings
appropriate to your environment.
6) Start (or restart) the Apache Tomcat service. Note that although you can
stop/start the Tomcat service via the bundled Tomcat service helper, if you
need to change its configuration you will need to manually edit the registry
key mentioned in step 5.
Of course, the hardest part of this (for non-developers) is recompiling
procrun. I'd be very happy to mail you a copy of the compiled binary (for
Intel 64-bit Xeon and AMD 64-bit chipsets) that the contributor of the patch
in ticket 39237 very kindly provided for me.
This is intended as a stop-gap while the Tomcat developers implement this
into the core Windows distribution.
Good luck!
Richard
___________________________
Richard Mundell
The Roberts Group
Market Data Expertise that FITS.
www.trgrp.com
----------------------------------------------------------------------------
----------
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Java]
"Jvm"="C:\\jdk\\jre\\bin\\server\\jvm.dll"
"Classpath"="C:\\tomcat\\bin\\bootstrap.jar"
"Options"=hex(7):2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,61,00
,\
2e,00,68,00,6f,00,6d,00,65,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,\
00,66,00,69,00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,\
61,00,74,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,65,00,6e,00,64,\
00,6f,00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72,00,73,00,3d,00,43,00,\
3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,00,74,00,73,00,77,00,65,00,62,\
00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,5c,00,63,00,6f,00,6d,00,6d,00,\
6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72,00,73,00,65,00,64,00,00,00,2d,\
00,44,00,6a,00,61,00,76,00,61,00,2e,00,69,00,6f,00,2e,00,74,00,6d,00,70,00,\
64,00,69,00,72,00,3d,00,43,00,3a,00,5c,00,74,00,72,00,67,00,5c,00,66,00,69,\
00,74,00,73,00,77,00,65,00,62,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,\
5c,00,74,00,65,00,6d,00,70,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,\
00,75,00,74,00,69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,00,\
2e,00,6d,00,61,00,6e,00,61,00,67,00,65,00,72,00,3d,00,6f,00,72,00,67,00,2e,\
00,61,00,70,00,61,00,63,00,68,00,65,00,2e,00,6a,00,75,00,6c,00,69,00,2e,00,\
43,00,6c,00,61,00,73,00,73,00,4c,00,6f,00,61,00,64,00,65,00,72,00,4c,00,6f,\
00,67,00,4d,00,61,00,6e,00,61,00,67,00,65,00,72,00,00,00,2d,00,58,00,58,00,\
3a,00,4d,00,61,00,78,00,50,00,65,00,72,00,6d,00,53,00,69,00,7a,00,65,00,3d,\
00,32,00,35,00,36,00,6d,00,00,00,2d,00,58,00,58,00,3a,00,52,00,65,00,73,00,\
65,00,72,00,76,00,65,00,64,00,43,00,6f,00,64,00,65,00,43,00,61,00,63,00,68,\
00,65,00,53,00,69,00,7a,00,65,00,3d,00,31,00,32,00,38,00,6d,00,00,00,2d,00,\
58,00,6d,00,78,00,33,00,30,00,37,00,32,00,6d,00,00,00,00,00
"JvmMs"=dword:00000000
"JvmMx"=dword:00000000
"JvmSs"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Log]
"Path"="C:\\tomcat\\logs"
"StdError"="auto"
"StdOutput"="auto"
"Level"="Error"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Start]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,61,00,72,00,74,00,00,00,00,00
"Mode"="jvm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Stop]
"Class"="org.apache.catalina.startup.Bootstrap"
"Params"=hex(7):73,00,74,00,6f,00,70,00,00,00,00,00
"Mode"="jvm"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat]
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.5]
"InstallPath"="C:\\tomcat"
"Version"="5.5.9"
---------------------------------------------------------------------
-----
Swapnil Kale  Think before you print
________________________________________
:working:
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p16896616.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
BabaOrum
2008-12-04 10:28:31 UTC
Permalink
I have followed these instructions but it does not work.
This is whet I get on the server:


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

E:\>cd "Program Files\Apache Software Foundation\apache-tomcat-6.0.18\bin"

E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\bin>tomcat6.exe
[2008-12-04 11:17:45] [427 prunsrv.c] [error]
The system cannot find the file specified.
[2008-12-04 11:17:45] [1336 prunsrv.c] [error]
Load configuration failed

E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\bin>version.bat
Using CATALINA_BASE: E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18
Using CATALINA_HOME: E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18
Using CATALINA_TMPDIR: E:\Program Files\Apache Software
Foundation\apache-tomcat-6.0.18\temp
Using JRE_HOME: E:\Program Files\Java\jre6
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
OS Name: Windows 2003
OS Version: 5.2
Architecture: amd64
JVM Version: 1.6.0_11-b03
JVM Vendor: Sun Microsystems Inc.
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20830856.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
kareda
2008-12-04 18:09:57 UTC
Permalink
Hello,

tried this guide, doesn't work for me though. used the 64-bit tomcat
binaries but when running "Service.bat install" I get the error:
"The program or feature "\??\C:\apache-tomcat-6.0.18\bin\tomcat6.exe" cannot
start or run due to incompatibility with 64-bit version of Windows. "

server info: 64-bit windows 2003 running on Quad Core Intel Xeon X3320 (4 x
2.50 GHz), 8.192 MB SDRAM

any help is greatly appreciated.

tnx!
Kaur
Post by Swapnil.Kale
Hey folks,
Finally i found the one i wanted. Did a google recently and found this: If
you are looking for 64 bit amd exe for tomcat here is the solution.
Background
To install Tomcat in a 64bit architecture, download the ZIP installer from
the Apache web site and unzipped.
At this point
• Tomcat can be started by using startup.bat or shutdown using shutdown.bat
• Tomcat can not be used as a Windows service since Tomcat6.exe and
Tomcat6w.exe are intended for 32bit hardware
Steps
1) Download from the Apache repository the corresponding version of
Tomcat6.exe and Tomcat6w.exe for your platform
If your platform is AMD64 (This will work with Intel processors based an
AMD64)
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
If your platform is Itanium, use
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/ia64/
2) Rename/save the existing Tomcat6.exe and Tomcat6w.exe from your
%CATALINA_HOME%\bin directory
3) Move the downloaded copies to %CATALINA_HOME%\bin
4) From the command prompt, install Tomcat as a service, running the
following command
Service.bat install
5) Before Tomcat is started, make sure you have allocated enough memory to
Tomcat
Double-click Tomcat6w.exe and set the memory sizes required
6) Now you can start Tomcat as a service. You could use any of the
• From Start  Settings  Control Panel  Administrative Tools  Services
• Use the General tab in the Apache Tomcat Properties window
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20839072.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Caldarale, Charles R
2008-12-04 18:29:02 UTC
Permalink
Subject: Re: Mini HOW-TO: Tomcat as a service on Windows
Server 2003 64-bitedition
used the 64-bit tomcat binaries
Which ones? AMD64 or IA64? (Hint: you need the AMD64 ones.)
server info: 64-bit windows 2003 running on Quad Core Intel
Xeon X3320 (4 x 2.50 GHz), 8.192 MB SDRAM
That's a bit more information than your first posting, but you're still leaving out one critical item: what JVM do you have installed? Is it 32-bit or 64-bit?

If it's a 32-bit JVM, you need the original 32-bit tomcat6.exe and tomcat6w.exe programs, not the 32-bit ones.

Note that for 32-bit JVMs, you will also need a copy of msvcr71.dll available to the tomcat6.exe program; put it in Tomcat's bin directory if needed.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
kareda
2008-12-04 18:59:29 UTC
Permalink
thanks for the fast reply, Chuck!

I'm running 64-bit jvm (1.6)
I used the amd binaries as the guide said those should do the trick for
Intel processors:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
but these really don't work. those are strangely small files also - only
18KB both!?

But, I found help from another thread:
http://www.nabble.com/DO-NOT-REPLY--Bug-35869--Can%27-t-run-as-a-service-on-Windows-Server-2003-64-Bit-Edition-td16765257.html#a16765257

these binaries here worked fine!
https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/res/procrun/amd64/

tnx again, must remember this board here!

Kaur
Post by Caldarale, Charles R
Subject: Re: Mini HOW-TO: Tomcat as a service on Windows
Server 2003 64-bitedition
used the 64-bit tomcat binaries
Which ones? AMD64 or IA64? (Hint: you need the AMD64 ones.)
server info: 64-bit windows 2003 running on Quad Core Intel
Xeon X3320 (4 x 2.50 GHz), 8.192 MB SDRAM
That's a bit more information than your first posting, but you're still
leaving out one critical item: what JVM do you have installed? Is it
32-bit or 64-bit?
If it's a 32-bit JVM, you need the original 32-bit tomcat6.exe and
tomcat6w.exe programs, not the 32-bit ones.
Note that for 32-bit JVMs, you will also need a copy of msvcr71.dll
available to the tomcat6.exe program; put it in Tomcat's bin directory if
needed.
- Chuck
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20840110.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Caldarale, Charles R
2008-12-04 19:09:15 UTC
Permalink
Subject: RE: Mini HOW-TO: Tomcat as a service on Windows
Server 200364-bitedition
I used the amd binaries as the guide said those should do the
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16
/res/procrun/amd64/
but these really don't work. those are strangely small files
also - only 18KB both!?
Definitely the wrong size; the AMD64 versions should be 72KB and 105KB for 6 and 6w, respectively.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Swapnil.Kale
2008-12-05 01:08:18 UTC
Permalink
Hi,
The article I have posted is an older one. The service exe is now available
at tomcat site. I don't have the link handy though, I will surely post it
soon.
I won't recommend the old post now as a year before the only solution was
the posted ones.
Thanks.

Sent from my iPhone.
Post by kareda
Hello,
tried this guide, doesn't work for me though. used the 64-bit tomcat
"The program or feature "\??\C:\apache-tomcat-6.0.18\bin\tomcat6.exe"
cannot start or run due to incompatibility with 64-bit version of Windows.
"
server info: 64-bit windows 2003 running on Quad Core Intel Xeon X3320 (4
x 2.50 GHz), 8.192 MB SDRAM
any help is greatly appreciated.
tnx!
Kaur
Post by Swapnil.Kale
Hey folks,
If you are looking for 64 bit amd exe for tomcat here is the solution.
Background
To install Tomcat in a 64bit architecture, download the ZIP installer
from the Apache web site and unzipped.
At this point
• Tomcat can be started by using startup.bat or shutdown using shutdown.bat
• Tomcat can not be used as a Windows service since Tomcat6.exe and
Tomcat6w.exe are intended for 32bit hardware
Steps
1) Download from the Apache repository the corresponding version of
Tomcat6.exe and Tomcat6w.exe for your platform
If your platform is AMD64 (This will work with Intel processors based an
AMD64)
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/amd64/
If your platform is Itanium, use
http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_16/res/procrun/ia64/
2) Rename/save the existing Tomcat6.exe and Tomcat6w.exe from your
%CATALINA_HOME%\bin directory
3) Move the downloaded copies to %CATALINA_HOME%\bin
4) From the command prompt, install Tomcat as a service, running the
following command
Service.bat install
5) Before Tomcat is started, make sure you have allocated enough memory
to Tomcat
Double-click Tomcat6w.exe and set the memory sizes required
6) Now you can start Tomcat as a service. You could use any of the
• From Start  Settings  Control Panel  Administrative Tools  Services
• Use the General tab in the Apache Tomcat Properties window
-----
Swapnil Kale  Think before you print
________________________________________
:working:
--
View this message in context: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Server-2003-64-bit-edition-tp4716292p20845972.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
Loading...