Tomcat6 Problem (wrong JVM)

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Sun Jan 17 20:35:04 UTC 2010


17.01.2010 20:46, Rick Bragg:

Beware: I don't use the Ubuntu-packaged version of Tomcat, so I'm only
guessing/trying to remember from a test I did long ago.

> My system info:
> OS: Ubuntu Hardy LTS version 8.04 - 2.6.24-16-server amd64
> Tomcat: Apache Tomcat/6.0.18
> 
> According to #java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> 
> However, after firing up tomcat with /etc/init.d/tomcat6 start,
> according to the "manager" page
> it is using a different version of the JVM
> 
> JVM: 1.6.0_0-b11
> 
> How can I make sure that Tomcat uses the right JVM?

I'd take a look at /etc/default/tomcat* if something like it exists, at
the init script itself otherwise, and see if JAVA_HOME or JRE_HOME is
set there.

> I ran as root:
> update-java-alternatives -s java-6-sun
> 
> ls -l /usr/lib/jvm/
> total 12
> drwxr-xr-x 5 root root 4096 2010-01-13 10:52 java-1.5.0-gcj-4.2-1.5.0.0
> drwxr-xr-x 5 root root 4096 2010-01-17 14:39 java-6-openjdk
> lrwxrwxrwx 1 root root   19 2010-01-15 11:59 java-6-sun ->
> java-6-sun-1.6.0.17
> drwxr-xr-x 8 root root 4096 2010-01-15 11:59 java-6-sun-1.6.0.17
> lrwxrwxrwx 1 root root   26 2008-05-03 17:31 java-gcj ->
> java-1.5.0-gcj-4.2-1.5.0.0
> 
> Where is version 1.6.0_0-b11 coming from? 

My guess would be OpenJDK.

-- 
Regards
  mks




More information about the ubuntu-users mailing list