Tomcat6 Problem (wrong JVM)

Rick Bragg rbragg at gmnet.net
Sun Jan 17 21:48:53 UTC 2010


On Sun, 2010-01-17 at 21:35 +0100, Markus Schönhaber wrote:
> 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
> 

Hi,

I edited the /etc/default/tomcat6 file
Everything was commented, so I added 

JAVA_HOME=/usr/lib/jvm/java-6-sun

Now the version seems right in the "manager" Yea!  

HOWEVER, now there are no log files!  logs were in /var/log/tomcat6/...
and now they are not being updated...  Logging has stopped.

Any clues?

Thanks again
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/a436f14d/attachment.bin>


More information about the ubuntu-users mailing list