Reputation:
Installed Tomcat 6 on WinXP 64. It installed just fine. But when I try to launch it ( from Windows Services) I get the following error : "Can not start an the Apache Tomcat Service on Local computer." error 216:0xd8
Upvotes: 17
Views: 46730
Reputation: 11
The fastest and simplest way to runs Tomcat at a 64bit Windows environment is installing the 32Bit JDK. Note: You can install JDK 32Bit after been instaled the JDK 64Bit, no problems will occur and de JDK will be updated.
Upvotes: 1
Reputation: 52689
FYI. I have it working now: Tomcat 6.0.29 and JRE 6u23, no mucking about - install the JRE, install Tomcat service installer, job done. It all starts up and works perfectly.
Upvotes: 0
Reputation: 19
Just wanted to let folks know that when using 64bit tomcat 6, the registry to look at is
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\
Note the additional \Wow6432Node\
Thank you for your help!
Upvotes: 1
Reputation: 68308
According to the changelog since version 6.0.21 the 64-bit components are packaged in the native installer:
Include 64-bit Windows service wrapper in distributions. Update the Windows installer to automatically use the correct binary on 64-bit machines. (markt)
You should need no further configuration.
Upvotes: 11
Reputation: 5846
It's well known issue.
Tomcat wrapper for windows service is compiled for 32 bits JDK.
Steps that should allow you to install Tomcat as windows service under JDK64bits.
Download Tomcat binary installation (zip file; exe file will not find 64 bits JDK/JRE).
Extract files from the archive.
Rename tomcat5.exe (tomcat6.exe) to tomcat5.exe.32bits to (tomcat6.exe.32bits)
Extract 64 bits Tomcat wrapper from tomcat5_5_64bits_wrapper.zip and rename it to tomcat5.exe (tomcat6.exe). See details are here. (Update: The Bugzilla post seems to be down, but I believe an updated exe file can be found in the Tomcat SVN Repository).
Install it as Windows service executing "service.bat install [Tomcat instance name]", where [Tomcat instance name] is optional windows service name.
Under certain conditions tomcat is not correctly configure service registry values. It points out itself to 32 bits version of JRE/JDK instead of 64 bits. It can be done explicitly (path to wrong JDK/JRE) or implicitly ("auto" value that imply using of JAVA_HOME or JRE_HOME that point out to 32 bits version). Anyway, it's highly recommented check registry value that define which version of JDK/JRE will be used for tomcat windows service, see key HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0[Tomcat instance name]\Parameters\Log\jvm and point it out to correct 64 bits JDK/JRE (e.g. jvm=C:\Program Files\Java\jdk1.5.0_15\jre\bin\server\jvm.dll).
Upvotes: 13
Reputation:
Just modify step 6 so you put it in java instead of log in the registry value
Upvotes: 0
Reputation: 1191
I've struggled with this. I was trying to install Tomcat 6 on a Windox XP x64 system running on a virtual Intel Xeon CPU (X5460). I used FoxyBOA's comment as a guide, but offer the following:
After that, everything worked: I was able to startup Tomcat with its service manager and with the Windows Service Management Console.
At the time I did this, I used Tomcat 6.0.18 and Sun Java 6 Update 12 (64-bit).
Upvotes: 4