You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eric B <mi...@gmail.com> on 2008/04/08 17:39:37 UTC

Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Hi, all.

I've got a collection of very old versions of Windows, Tomcat, and Java.  My
working configuration is Windows 2000 Professional, Tomcat 4.1.30, and Java
SDK 1.3.1_09.

When I install a newer version of Java and remove 1.3.1, the three instances
of Tomcat that I use will no longer run as a service.  When Windows starts
up, or when I attempt to start the services manually, I get the following
error messages in the NT event viewer:
"Could not load the Java Virtual Machine. "
"The LoadLibrary function failed for the following reason: The specified
module could not be found."

Combing over the documentation, this seems to be caused by an incorrect
configuration of my environment variables.  So, I checked (and
double-checked) that they're correct.  When Tomcat works, I have a JAVA_HOME
of c:\jdk1.3.1_09 and a PATH entry of c:\jdk1.3.1_09\bin. When it doesn't
work, the JAVA_HOME and PATH entries point to where I've installed whatever
new version of Java I'm trying (1.4x, 5.x, or 6.x), which is just off of the
root directory of c.

Now, when I attempt to start Tomcat using the startup.bat, it works just
fine.

So, here's my two-part question: Is there something else that I need to do
to my environment variables in order to get this to work?  Furthermore, is
there a setting in any of the xml properties documents that I can adjust to
"force" Tomcat to look for a jdk/j2sdk in the location of my choosing?

I do have plans to update all of this stuff to much newer versions of both
the OS and the Java components, but right now, I can only update Java; I
have to stick with the current version of Tomcat.

Thank you for the assistance!
Eric B

Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by Mark Thomas <ma...@apache.org>.
Eric B wrote:
> When I install a newer version of Java and remove 1.3.1, the three instances
> of Tomcat that I use will no longer run as a service.

You'll need to configure the service to use the new JVM.

Also, you may hit this issue:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41538

Mark


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


Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by Eric B <mi...@gmail.com>.
Hi, all.

I found what I was looking for.  The values that are set when the services
are installed are located in the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service
Name>\Parameters

I changed the path to the new jvm.dll for v1.6_05, and my services came
right up.

Thanks for all of the speedy assistance!
Regards,
Eric B

On Tue, Apr 8, 2008 at 2:26 PM, Howard Watson <ho...@esgw.org> wrote:

> Hi Eric. What do you see when you right-click My Computer, choose
> Properties/Advanced tab/Environment Variables button. It used to be part of
> the java install to configure JAVA_HOME from here.
>
> >>> "Eric B" <mi...@gmail.com> 4/8/2008 9:39 AM >>>
> Hi, all.
>
> I've got a collection of very old versions of Windows, Tomcat, and Java.
>  My
> working configuration is Windows 2000 Professional, Tomcat 4.1.30, and
> Java
> SDK 1.3.1_09.
>
> When I install a newer version of Java and remove 1.3.1, the three
> instances
> of Tomcat that I use will no longer run as a service.  When Windows starts
> up, or when I attempt to start the services manually, I get the following
> error messages in the NT event viewer:
> "Could not load the Java Virtual Machine. "
> "The LoadLibrary function failed for the following reason: The specified
> module could not be found."
>
> Combing over the documentation, this seems to be caused by an incorrect
> configuration of my environment variables.  So, I checked (and
> double-checked) that they're correct.  When Tomcat works, I have a
> JAVA_HOME
> of c:\jdk1.3.1_09 and a PATH entry of c:\jdk1.3.1_09\bin. When it doesn't
> work, the JAVA_HOME and PATH entries point to where I've installed
> whatever
> new version of Java I'm trying (1.4x, 5.x, or 6.x), which is just off of
> the
> root directory of c.
>
> Now, when I attempt to start Tomcat using the startup.bat, it works just
> fine.
>
> So, here's my two-part question: Is there something else that I need to do
> to my environment variables in order to get this to work?  Furthermore, is
> there a setting in any of the xml properties documents that I can adjust
> to
> "force" Tomcat to look for a jdk/j2sdk in the location of my choosing?
>
> I do have plans to update all of this stuff to much newer versions of both
> the OS and the Java components, but right now, I can only update Java; I
> have to stick with the current version of Tomcat.
>
> Thank you for the assistance!
> Eric B
>
> Any views or opinions presented in this email are solely those of the
> author and do not necessarily represent those of the company. Employees of
> Easter Seals-Goodwill Northern Rocky Mountain are expressly required not to
> make defamatory statements and not to infringe or authorize any infringement
> of copyright or any other legal right by email communications. Any such
> communication is contrary to company policy and outside the scope of the
> employment of the individual concerned. The company will not accept any
> liability in respect of such communication, and the employee responsible
> will be personally liable for any damages or other liability arising.
> If you are not the intended recipient you are notified that disclosing,
> copying, distributing or taking any action in reliance on the contents of
> this information is strictly prohibited.
> Please report any inappropriate or abusive use of this email system to
> abuse@esgw.org
>

Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by Howard Watson <ho...@esgw.org>.
Hi Eric. What do you see when you right-click My Computer, choose Properties/Advanced tab/Environment Variables button. It used to be part of the java install to configure JAVA_HOME from here.

>>> "Eric B" <mi...@gmail.com> 4/8/2008 9:39 AM >>>
Hi, all.

I've got a collection of very old versions of Windows, Tomcat, and Java.  My
working configuration is Windows 2000 Professional, Tomcat 4.1.30, and Java
SDK 1.3.1_09.

When I install a newer version of Java and remove 1.3.1, the three instances
of Tomcat that I use will no longer run as a service.  When Windows starts
up, or when I attempt to start the services manually, I get the following
error messages in the NT event viewer:
"Could not load the Java Virtual Machine. "
"The LoadLibrary function failed for the following reason: The specified
module could not be found."

Combing over the documentation, this seems to be caused by an incorrect
configuration of my environment variables.  So, I checked (and
double-checked) that they're correct.  When Tomcat works, I have a JAVA_HOME
of c:\jdk1.3.1_09 and a PATH entry of c:\jdk1.3.1_09\bin. When it doesn't
work, the JAVA_HOME and PATH entries point to where I've installed whatever
new version of Java I'm trying (1.4x, 5.x, or 6.x), which is just off of the
root directory of c.

Now, when I attempt to start Tomcat using the startup.bat, it works just
fine.

So, here's my two-part question: Is there something else that I need to do
to my environment variables in order to get this to work?  Furthermore, is
there a setting in any of the xml properties documents that I can adjust to
"force" Tomcat to look for a jdk/j2sdk in the location of my choosing?

I do have plans to update all of this stuff to much newer versions of both
the OS and the Java components, but right now, I can only update Java; I
have to stick with the current version of Tomcat.

Thank you for the assistance!
Eric B

Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Easter Seals-Goodwill Northern Rocky Mountain are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. 
If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 
Please report any inappropriate or abusive use of this email system to abuse@esgw.org

Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
| Perhaps Chris S could help?  He's still using 4.1, but possibly not on
| Windows.

Haw haw haw. I have finally graduated, Chuck (but only to 5.5) ;)

Sorry, Eric, but I was never running Tomcat on Windows. A quick web
search seems to indicate that Tomcat 3.x used registry keys under
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation for settings like
this. I also found this:

http://www.pauaware.co.nz/tomcatntservice.htm

You should check these registry locations before modifying your service
definitions.

Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf7ywAACgkQ9CaO5/Lv0PBaRgCeMn4jwwzTAdyu99UtMhxcaLSO
RFIAoIjgwW3GsHYb9z1AelYrI3KXjV0V
=lNkR
-----END PGP SIGNATURE-----

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


RE: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Eric B [mailto:misterclandestine@gmail.com] 
> Subject: Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks 
> Tomcat running as a Service?
> 
> In terms of the reinstall, is there a way to see what 
> settings were applied when the services were installed

I don't know with that version of Tomcat, since I've never used one that
old.  The newer ones come with the previously mentioned utility that
will let you check and modify.

Perhaps Chris S could help?  He's still using 4.1, but possibly not on
Windows.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by Eric B <mi...@gmail.com>.
Hi, Chuck.

Thanks; that sounds like exactly the solution I should have thought of,
myself. :-)

In terms of the reinstall, is there a way to see what settings were applied
when the services were installed, originally?  Not all of the Tomcats on the
server "belong" to me, some of them came with a third party utility whose
documentation has long since vanished into the ether.

Thanks for the help!
Eric B

On Tue, Apr 8, 2008 at 12:55 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Eric B [mailto:misterclandestine@gmail.com]
> > Subject: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks
> > Tomcat running as a Service?
> >
> > When I install a newer version of Java and remove 1.3.1,
> > the three instances of Tomcat that I use will no longer
> > run as a service.
>
> You need to delete and recreate the services.  The existing ones are
> likely pointing to the old JVM location, rather than the new one.  More
> recent versions of Tomcat come with a utility to let you update the
> service settings (tomcat{5|6}w.exe), but I don't know if that's
> available with 4.1.
>
> > Combing over the documentation, this seems to be caused by
> > an incorrect configuration of my environment variables.
>
> Services do not use environment variables.
>
>  - 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks Tomcat running as a Service?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Eric B [mailto:misterclandestine@gmail.com] 
> Subject: Tomcat 4.1.30 on Win2k: New Java SDK/JDK breaks 
> Tomcat running as a Service?
> 
> When I install a newer version of Java and remove 1.3.1,
> the three instances of Tomcat that I use will no longer
> run as a service.

You need to delete and recreate the services.  The existing ones are
likely pointing to the old JVM location, rather than the new one.  More
recent versions of Tomcat come with a utility to let you update the
service settings (tomcat{5|6}w.exe), but I don't know if that's
available with 4.1.

> Combing over the documentation, this seems to be caused by
> an incorrect configuration of my environment variables.

Services do not use environment variables.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org