You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Bernard <bh...@actrix.gen.nz> on 2006/05/21 08:24:53 UTC

commons-daemon with JVM included in Fedora?

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


Re: commons-daemon with JVM included in Fedora?

Posted by Jean-frederic Clere <jf...@gmail.com>.
Bernard wrote:

>Jean-Frederic
>
>Your suggested solution works without problems so far.
>
>In location.c, I added
>
>    "/usr/lib/libgcj.so.6",          /* gij (GNU libgcj) (Red Hat
>4.0.0-8) */
>
>It appears that Red Hat Fedora 4 does not set JAVA_HOME, and the
>location of libgcj.so.6 is not in the same directory as the other java
>executables so I could not use that.
>  
>
I have committed the corresponding fix.
Use jsvc -home /usr to test and test what happends.

>Who creates a new version if any and when?
>  
>
We, commons-dev if someone asks or when we think we have enough new 
(tested) features.

>
>Would you be able to explain to me the syntax of the first line in the
>file jakarta-commons-daemon.spec?
>  
>
That is an rpm spec file... Ask fedora developpers or look into 
http://www.rpm.org/

Cheers

Jean-Frederic

+++ CUT +++

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


Re: commons-daemon with JVM included in Fedora?

Posted by Bernard <bh...@actrix.gen.nz>.
Jean-Frederic

Your suggested solution works without problems so far.

In location.c, I added

    "/usr/lib/libgcj.so.6",          /* gij (GNU libgcj) (Red Hat
4.0.0-8) */

It appears that Red Hat Fedora 4 does not set JAVA_HOME, and the
location of libgcj.so.6 is not in the same directory as the other java
executables so I could not use that.

Who creates a new version if any and when?


Would you be able to explain to me the syntax of the first line in the
file jakarta-commons-daemon.spec?

%define native      %{?_with_native:1}%{!?_with_native:0}

Where can I learn about this syntax?

Where is the syntax of the "define" keyword documented?

What does  "{?" mean?

Is this bash? I looked up "man bash" but there is nothing like "{?"

What does  "{!?" mean?

What does the whole command 
"%{?_with_native:1}%{!?_with_native:0}"
mean?

Many thanks

Bernard


On Wed, 24 May 2006 22:59:02 +0200, you wrote:

>Bernard wrote:
>
>>Hi Bill,
>>
>>How can I compile jsvc?
>>  
>>
>Read the README's.
>something like:
>sh support/buildconf.sh
>./configure --with-java=$JAVA_HOME
>make
>
>But I don't remember getting working with gij, I don't remember what was 
>the problem. But I will have a look to it.
>
>Cheers
>
>Jean-Frederic
>
>+++ CUT +++
>
>---------------------------------------------------------------------
>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


Re: commons-daemon with JVM included in Fedora?

Posted by Jean-frederic Clere <jf...@gmail.com>.
Bernard wrote:

>Hi Bill,
>
>How can I compile jsvc?
>  
>
Read the README's.
something like:
sh support/buildconf.sh
./configure --with-java=$JAVA_HOME
make

But I don't remember getting working with gij, I don't remember what was 
the problem. But I will have a look to it.

Cheers

Jean-Frederic

+++ CUT +++

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


Re: commons-daemon with JVM included in Fedora?

Posted by Bernard <bh...@actrix.gen.nz>.
Hi Bill,

How can I compile jsvc?

I have not done C development in my life.

I installed the source package
jakarta-commons-daemon-1.0.1-1jpp.src.rpm.
I modified the C source file as suggested.
Then I did "rpmbuild ba jakarta-commons-daemon.spec"
it did not appear to compile the C source. Why?

Would you have any ideas?


Regards

Bernard


On Mon, 22 May 2006 20:22:24 -0700, you wrote:

>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" <bh...@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" <bh...@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


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


Re: commons-daemon with JVM included in Fedora?

Posted by Bill Barker <wb...@wilshire.com>.
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" <bh...@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" <bh...@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


Re: commons-daemon with JVM included in Fedora?

Posted by Bernard <bh...@actrix.gen.nz>.
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" <bh...@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


Re: commons-daemon with JVM included in Fedora?

Posted by Bill Barker <wb...@wilshire.com>.
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.

"Bernard" <bh...@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