commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: commons-daemon with JVM included in Fedora?
Date Tue, 23 May 2006 03:22:24 GMT
The jsvc program requires to load the JVM .so file in order to launch the 
JVM.  With Sun's JVM, the file is called 'libjvm.so'.  What I need to know 
is what is the equivalent .so file called with GNU Java.  Of course, I 
*could* download and install it and look around, but since you've already 
got it installed, you could find this out faster than I could.

After you have found it, you just need to add it to the location_jvm_default 
table in location.c, and recompile jsvc.  However, it would be nice if you 
post your findings back to the list so that it can be included in the 
official version :).

"Bernard" <bht@actrix.gen.nz> wrote in message 
news:sv5372hgujcdq8l6soglcrri5dvbr3016i@4ax.com...
Hi Bill

Thanks for your reply.

I think the JVM that comes with fedora 4 is a bit different.
# eche $JAVA_HOME returns nothing

>From the jsvc output below I understand that jsvc has a problem
finding the JVM.
However it appears to be ok otherwise because I can run tomcat without
problems.

I used yum to get my jsvc packages:

# rpm -qa | grep jakarta-commons-daemon
jakarta-commons-daemon-1.0.1-1jpp
jakarta-commons-daemon-jsvc-1.0.1-1jpp

These have worked for me on RedHat 9 with Sun's JVM.

On Fedora 4:

# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)

I would be grateful for any ideas.

Thanks

Bernard




>I'm way too bored to actually research this myself, but if you could post
>the results of:
>  $ ls -lR $JAVA_HOME
>I can probably tell you what you need to patch to get this working for GNU
>Java.  You could also try building from SVN co, since there have been some
>JVM compatibility fixes there, but off of the top of my head, I don't
>remember one for GNU Java.


Starting tomcat: Error: jsvc execution failed
22/05/2006 22:42:42 5229 jsvc debug: +-- DUMPING PARSED COMMAND LINE
ARGUMENTS --------------
22/05/2006 22:42:42 5229 jsvc debug: | Detach:          True
22/05/2006 22:42:42 5229 jsvc debug: | Show Version:    No
22/05/2006 22:42:42 5229 jsvc debug: | Show Help:       No
22/05/2006 22:42:42 5229 jsvc debug: | Check Only:      Disabled
22/05/2006 22:42:42 5229 jsvc debug: | Stop:            False
22/05/2006 22:42:42 5229 jsvc debug: | Wait:            5000
22/05/2006 22:42:42 5229 jsvc debug: | Run as service:  No
22/05/2006 22:42:42 5229 jsvc debug: | Install service: No
22/05/2006 22:42:42 5229 jsvc debug: | Remove service:  No
22/05/2006 22:42:42 5229 jsvc debug: | JVM Name:        "null"
22/05/2006 22:42:42 5229 jsvc debug: | Java Home:
"/usr/lib/jvm/java"
22/05/2006 22:42:42 5229 jsvc debug: | PID File:
"/var/run/jsvc.pid"
22/05/2006 22:42:42 5229 jsvc debug: | User Name:       "myuser"
22/05/2006 22:42:42 5229 jsvc debug: | Extra Options:   3
22/05/2006 22:42:43 5229 jsvc debug: |
"-Dcatalina.home=/usr/share/tomcat5"
22/05/2006 22:42:43 5229 jsvc debug: |
"-Djava.io.tmpdir=/usr/share/tomcat5/temp"
22/05/2006 22:42:43 5229 jsvc debug: |
"-Djava.class.path=/usr/lib/jvm/java/lib/tools.jar:/usr/share/java/commons-daemon.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar"
22/05/2006 22:42:43 5229 jsvc debug: | Class Invoked:
"org.apache.catalina.startup.Bootstrap"
22/05/2006 22:42:43 5229 jsvc debug: | Class Arguments: 0
22/05/2006 22:42:43 5229 jsvc debug:
+-------------------------------------------------------
22/05/2006 22:42:43 5230 jsvc debug: user changed to 'myuser'
22/05/2006 22:42:43 5229 jsvc debug: User 'myuser' validated
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate Java Home in
/usr/lib/jvm/java
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM
configuration file /usr/lib/jvm/java/jre/lib/jvm.cfg
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM
configuration file /usr/lib/jvm/java/lib/jvm.cfg
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM
configuration file /usr/lib/jvm/java/jre/lib/i386/jvm.cfg
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM
configuration file /usr/lib/jvm/java/lib/i386/jvm.cfg
22/05/2006 22:42:43 5229 jsvc debug: VM configuration file not found
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/i386/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/i386/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/i386/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/bin/i386/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/bin/i386/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/bin/i386/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/bin/i386/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/classic/green_threads/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/bin/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/bin/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/bin/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/bin/classic/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/bin/client/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/bin/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/fast64/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/jre/lib/i386/fast32/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/i386/fast64/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Attempting to locate VM library
/usr/lib/jvm/java/lib/i386/fast32/libjvm.so
22/05/2006 22:42:43 5229 jsvc debug: Java Home located in
/usr/lib/jvm/java
22/05/2006 22:42:43 5229 jsvc debug: +-- DUMPING JAVA HOME STRUCTURE
------------------------
22/05/2006 22:42:43 5229 jsvc debug: | Java Home:
"/usr/lib/jvm/java"
22/05/2006 22:42:43 5229 jsvc debug: | Java VM Config.: "null"
22/05/2006 22:42:43 5229 jsvc debug: | Found JVMs:      0
22/05/2006 22:42:43 5229 jsvc debug:
+-------------------------------------------------------
22/05/2006 22:42:43 5229 jsvc error: Cannot find any VM in Java Home
/usr/lib/jvm/java


On Sun, 21 May 2006 18:30:34 -0700, you wrote:

>
>"Bernard" <bht@actrix.gen.nz> wrote in message
>news:fe1072ln676aljung1nrl5u11g2jmi3ems@4ax.com...
>Hi,
>
>jakarta-commons-daemon-jsvc-1.0.1-1jpp
>
>when installed on Fedora 4 Linux, does not appear to like the
>installed JVM:
>
>gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
>
>
>Can anyone suggest a way to get this working?
>
>I would like to use the installed JVM instead of Sun's.
>
>Many thanks
>
>Bernard
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org 




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message