java 1.6.0 and tomcat 5

Florez, Nestor NFlorez at sdcwa.org
Fri Jun 17 14:42:08 UTC 2011


Forgot to mentioned that I am using rhel 5.6

My /usr/bin/java is a link that points to /etc/alternatives/java

The command "alternatives --config java" returns with 
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

JAVA_HOME in tomcat5.conf points to /usr/lib/jvm/java

everything points to a different java.
What is the correct java to point to on rhel5

When I tried to start tomcat5, it does not start and I get
# service tomcat5 start
Starting tomcat5: lock file found but no process running for
pid 1232, continuing
/usr/bin/rebuild-jar-repository: error: Could not find servlet Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm 

All of this happened when I "yum erase tomcat5" and "yum erase java-1.6.0"
and then I installed then again.

THANKS!!!

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Geofrey Rainey
Sent: Thursday, June 16, 2011 5:43 PM
To: General Red Hat Linux discussion list
Subject: RE: java 1.6.0 and tomcat 5

A few ways:

1. you could symlink, something like so (change the location of the java 1.6 binary though):

ln -s /usr/java_1.6/bin/java /usr/lib/java/bin/java

2. specify the JAVA_HOME variable in tomcat.conf

-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Florez, Nestor
Sent: Friday, 17 June 2011 12:14 p.m.
To: General Red Hat Linux discussion list
Subject: java 1.6.0 and tomcat 5

Hi there,

I am trying to get tomcat5 running with java 1.6.0 I "yum install tomcat5" and my java is #java -version java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

#tomcat5 version
Found JAVA_HOME: /usr/lib/java
Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for it next time
Using CATALINA_BASE:   /usr
Using CATALINA_HOME:   /usr
Using CATALINA_TMPDIR: /usr/temp
Using JRE_HOME:
/usr/bin/dtomcat5: line 362: /usr/lib/java/bin/java: No such file or directory

What do I need to do to run tomcat5 and java 1.6.0?

Thanks,

Néstor :)

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
==========================================================
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz 
==========================================================
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list