Re: Upgraded JDK/JVM not being picked up by tomcat



dottydomino@xxxxxxxxxxx wrote:
I recently upgraded to jdk 1.4.2_10-b03 from 1.4.1_04-b01

I have changed the JAVA_HOME variable to point to the new java
directory. Typing "java -version" and "echo %JAVA_HOME%" shows
everything to be hunkydory

But on the Tomcat management info page the JVM version is still showing
1.4.1_04-b01

This is the output from localhost:8080/manager/serverinfo:
Tomcat Version: Apache Tomcat/4.1.31
OS Name: Windows XP
OS Version: 5.1
OS Architecture: x86
JVM Version: 1.4.1_04-b01
JVM Vendor: Sun Microsystems Inc.

I found this page
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200409.mbox/%3C20040924164050.38786.qmail@xxxxxxxxxxxxxxxxxxx%3E
which suggests that the jvm version is picked up as a
System.getProperty but I cant find how this property is set. I've been
through the bat files in Tomcat/bin but still cant work it out.

All the FAQs i've read suggest that updating the JAVA_HOME variable
should be sufficient. what am i doing wrong?

This isnt that important but it's driving me nuts!

Do you run Tomcat as a Windows service?

If so, check the JVM settings in the Apache Tomcat Monitor.

Don't know if the Tomcat Monitor is available for Tomcat v4; but it is for Tomcat v5 and appears as a tray icon next to Windows' clock. Otherwise you may check the Windows registry for Tomcat entries. For Tomcat v5.5 the JVM registry settings can be found in HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java
--
Regards,

Roland
.



Relevant Pages

  • Re: [opensuse] install tomcat 5.5 with jdk 1.5 from APT on 10.2
    ... Trying to get tomcat 5 installing with APT. ... installation, mightbe due to jdk1.5 is being used instead of 1.4). ... pretty much every distribution I use uses a jvm a bit older or newer ... Another bonus of doing this is that if you thinker any JVM ...
    (SuSE)
  • Re: [opensuse] install tomcat 5.5 with jdk 1.5 from APT on 10.2
    ... Trying to get tomcat 5 installing with APT. ... unable to decide which APT extra repository to use for tomcat 5.x (+jta, ... installation, mightbe due to jdk1.5 is being used instead of 1.4). ... Another bonus of doing this is that if you thinker any JVM ...
    (SuSE)
  • Re: Migrating Tomcat Servlets to IIS environment
    ... The "TomCat" servlet container will run under IIS instead of Apache. ... currently have IIS controlling ASP, JVM, TomCat and Websphere ... > and then build it in Microsoft JVM environment. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: Java process mysteriously being killed and disconnected processes with it.
    ... tomcat will be the only surviving process. ... My first bet would be some form of JVM memory issue where the stack ... debugging / performance monitoring tools are included:http://www-128.ibm.com/developerworks/java/jdk/aix/service.html ... stty sane CNTL-J ...
    (comp.unix.aix)
  • Re: Changing the JVM that Tomcat uses
    ... > from the Free Software Foundation to the one from Sun. I've ... If you're using the gcj-built Tomcat from FC2 then you can't change ... the JVM it uses. ...
    (Fedora)