mastahnke
2006-03-28, 09:29 PM CST
In an attempt to get some tomcat applications working, I installed sun's jvm. I used the tar.gz as the documentation indicates from Fedora that using the RPM could break during yum updates due to the "provides" methods of the Sun's RPM.
Step 1. install Sun's JRE
Step 2. Place it in /opt/jre1.5
Step 3. Mess with the hell that is attempting to start tomcat5, configure tomcat5, figure out how to use the alternatives command, use it, google a bunch and still get errors.
Here's the startup error.
[root@xxx ~]# service tomcat5 start
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
[ OK ]
Lots of googling and forum reading led me to believe I was close. Certainly, I could rip everything out and use jpackage.org's documentation and packaging methods, but I actually wanted a Fedora system, just with Sun's Java. I wouldn't think that is too hard.
I am kind of a Java administration noob, so please be gentle!
Here is my alternatives list.
[root@xxx ~]# alternatives --display java
java - status is manual.
link currently points to /opt/jre1.5/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
/opt/jre1.5/bin/java - priority 2
slave rmiregistry: /opt/jre1.5/bin/rmiregistry
slave jre_exports: (null)
slave jre: /opt/jre1.5
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
I can't find a jre_exports in /opt/jre1.5.
I hope it's something obvious.
MIKE
Step 1. install Sun's JRE
Step 2. Place it in /opt/jre1.5
Step 3. Mess with the hell that is attempting to start tomcat5, configure tomcat5, figure out how to use the alternatives command, use it, google a bunch and still get errors.
Here's the startup error.
[root@xxx ~]# service tomcat5 start
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
[ OK ]
Lots of googling and forum reading led me to believe I was close. Certainly, I could rip everything out and use jpackage.org's documentation and packaging methods, but I actually wanted a Fedora system, just with Sun's Java. I wouldn't think that is too hard.
I am kind of a Java administration noob, so please be gentle!
Here is my alternatives list.
[root@xxx ~]# alternatives --display java
java - status is manual.
link currently points to /opt/jre1.5/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
/opt/jre1.5/bin/java - priority 2
slave rmiregistry: /opt/jre1.5/bin/rmiregistry
slave jre_exports: (null)
slave jre: /opt/jre1.5
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
I can't find a jre_exports in /opt/jre1.5.
I hope it's something obvious.
MIKE