Tomcat6 Problem (wrong JVM)

Rick Bragg rbragg at gmnet.net
Sun Jan 17 19:46:22 UTC 2010


Hi,

I have a problem running tomcat6
after installing it via apt-get, it seems that tomcat is running the
wrong version of the JVM

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

Thanks
Rick


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5489 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100117/ee8e5fc0/attachment.bin>


More information about the ubuntu-users mailing list