> From: Eric Hawkes [mailto:[EMAIL PROTECTED] 
> Subject: RE: Can't start tomcat 5.5.26 service on windows
> 
> We install the JRE, and then we copy the server jvm.dll
> (taken from an SDK install) to 
> C:\Program Files\Java\jre1.5.0_12\bin\server\jvm.dll 

Does the server jvm.dll you're copying come from the exact same build
and platform (32- vs 64-bit) as the JRE?

You would think that would be sufficient, but if you do a detailed
comparison of the files in a public JRE against those in a JDK's private
JRE you'll see lots of differences, including the contents of various
*.jar files.  (For example, rt.jar from the JDK is 4 MB larger than the
one in the JRE.)  I don't know why the two sets of jars should be
different, but they are, and it may be pertinent.

Can you launch the server mode with "java -server -version"?  (Note that
the -server option here applies only to the launcher, it's not done that
way when running as a service.)

What happens when you set JAVA_OPTS=-server and start Tomcat with
startup.bat?

> We simply point tomcat to the server jvm.dll.  

Verify it's done properly by changing it in the GUI and see the effect
it has on the registry settings for Tomcat.

> My JAVA_HOME is  C:\Program Files\Java\jre1.5.0_12 

You should set JAVA_HOME only for a JDK.  The non-service scripts expect
JRE_HOME for a JRE-only setup, but the service.bat script ignores that
(possibly because a Windows JRE doesn't include the server mode or more
likely because someone forgot to update this script when the JRE_HOME
check was added to the other scripts).

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

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to