Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Software

Software Help on software problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2006-03-28, 10:29 PM CST
mastahnke Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
Question FC5 and Sun's Java

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.
[
Code:
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.
[
Code:
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
Reply With Quote
  #2  
Old 2006-03-29, 04:50 AM CST
bob's Avatar
bob Offline
Administrator
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth.
Age: 64
Posts: 16,497
Mike, I know NOTHING about Java programming, but Stan Finley's instructions here: http://stanton-finley.net/fedora_cor...otes.html#Java have Sun Java working for Firefox and other programs on my system. Might want to compare notes.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651

Don't forget to comment when your problem is solved - others will be searching for solutions too!
Reply With Quote
  #3  
Old 2006-03-29, 11:10 AM CST
herrib Offline
Registered User
 
Join Date: Dec 2004
Location: Brittany (Europe -> France -> West coast)
Posts: 143
You'll have to initialize the slave references. In a console, type (with root rights):

Code:
# JRE=/opt/jdk1.5
# /usr/sbin/alternatives  \
        --install /usr/bin/java                   java          $JRE/bin/java          15004 \
        --slave /usr/bin/rmiregistry              rmiregistry   $JRE/bin/rmiregistry         \
        --slave /usr/share/man/man1/java.1        java.1        $JRE/man/man1/java.1         \
        --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 $JRE/man/man1/rmiregistry.1  \
        --slave /usr/lib/jvm/jre                  jre           $JRE/jre                     \
        --slave /usr/lib/jvm-exports/jre          jre_exports   $JRE/jre/lib
This document is written in french but may be a help for you (just read the examples ...).
Reply With Quote
  #4  
Old 2006-03-29, 12:05 PM CST
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,155
The base Sun jre package does not include jndi or jdbc, you have to download and install them separately. Also, I'd recommend using the rpm release from Sun.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #5  
Old 2006-03-29, 09:01 PM CST
mastahnke Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
I still haven't got it working. I tried to switch to the SDK, instead of the just the JRE to see if that would help. No luck thus far. I can't believe I am the only one who has had this problem.

Also, is the jdbc stuff a separate package from Sun? I looked for it briefly, but didn't come up with much. Also, the tomcat error logs are not all that helpful to me, but I could attach them.

here's my current alternatives list.

Code:
[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
 slave java.1: (null)
 slave rmiregistry.1: (null)
/opt/jre1.5/bin/java - priority 2
 slave rmiregistry: /opt/jre1.5/bin/rmiregistry
 slave jre_exports: /opt/jre1.5/jre/lib
 slave jre: /opt/jre1.5/jre
 slave java.1: /opt/jre1.5/man/man1/java.1
 slave rmiregistry.1: /opt/jre1.5/man/man1/rmiregistry.1
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
I also have set the Java option for the second set of alternatives.

Last edited by mastahnke; 2006-03-29 at 09:06 PM CST.
Reply With Quote
  #6  
Old 2006-03-29, 10:11 PM CST
mastahnke Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
Ok, after more fiddleing, I found this: http://fedoraproject.org/wiki/JavaFAQ

This certainly made the JVM part easier. I then deployed my app (I guess anyway, I cp'ed a .war file) to the webapps directory. I can run the jar file from the command line fine, so I think all the java works.

Now I am getting tomcat specific errors (I think). Any suggestions? This is the cataline.out log file. (a snip)

Code:
Mar 29, 2006 11:07:05 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive source.war
Mar 29, 2006 11:07:06 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 29, 2006 11:07:06 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 29, 2006 11:07:06 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34  config=null
Mar 29, 2006 11:07:06 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 29, 2006 11:07:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1777 ms
Mar 29, 2006 11:10:59 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
Mar 29, 2006 11:10:59 PM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException
        at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:607)
        at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:564)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:672)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
[root@netbox opt]#
Reply With Quote
  #7  
Old 2006-03-29, 10:19 PM CST
csfalcon Offline
Registered User
 
Join Date: Apr 2004
Location: MD
Posts: 97
JDBC is provided by the database provider, look for it on the database provider's website.

Here is how I install tomcat: http://www.csfalcon.com/wiki/csfalcon/TomcatServer

did you set the JAVA_HOME environment variable?
__________________
Fedora Core 8

Dell Dimension E520
2.13 GHz Core 2 Duo / 2 GB RAM
128 MB nVidia GeForce 7300LE

Dell Inspiron 600m
1.5 GHz Pentium M / 1.25 GB RAM
64 MB ATI Mobility Radeon
Intel® PRO/Wireless 2100

www.csfalcon.com

Last edited by csfalcon; 2008-06-06 at 04:05 PM CDT.
Reply With Quote
  #8  
Old 2006-03-29, 10:37 PM CST
mastahnke Offline
Registered User
 
Join Date: Sep 2004
Posts: 5
I think I got it. I guess by default tomcat has no applications deployed. Not even a welcome screen, at least under FC5 defaults. I went to my specific directory and I got data back. I guess that's good.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
use Sun's Java, not GNU? wutbox Software 2 2007-08-10 01:46 PM CDT
any reason to use Sun's Java? Globe Trotter gmane.linux.redhat.fedora.general 13 2006-10-30 12:10 PM CST
Java 1.50 not installed in FC4? Use Sun's version? Daniel B. Thurman gmane.linux.redhat.fedora.general 4 2005-11-02 04:30 PM CST
RE: Java 1.50 not installed in FC4? Use Sun's version? Daniel B. Thurman gmane.linux.redhat.fedora.general 2 2005-11-01 05:19 PM CST
Sun's java SDK on FC2 x86_64 mhec x86 64-bit 11 2004-08-31 11:33 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 07:39 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Languages translations supported by vBET