commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: [daemon] JSVC error Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
Date Fri, 11 Mar 2011 16:38:56 GMT
On 03/11/2011 05:14 PM, Beryle Simmons wrote:
> Thanks, we are trying to compile on a solaris 10 32 bit container though, the JSVC executable
builds but throws the "wrong ELF CLASS ELF64" error.  We haven't tried compiling with Sun
Studio though, we will try compiling the normal way with Sun Studio and see what happens.
>

Here is the quick howto:

$ uname -a
SunOS dev12.qa.atl2.redhat.com 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire-V210


=== Making 32-bit ===

$ ./configure CC=cc CFLAGS=-m32
$ make
$ cp jsvc $HOME/apache-tomcat/bin
$ cd $HOME/apache-tomcat/bin
$ sudo ./jsvc -debug -cp commons-daemon-1.0.5.jar:bootstrap.jar org.apache.catalina.Bootstrap
....
+-- DUMPING JAVA HOME STRUCTURE ------------------------
| Java Home:       "/usr/java"
| Java VM Config.: "/usr/java/jre/lib/sparc/jvm.cfg"
| Found JVMs:      2
| JVM Name:        "client"
|                  "/usr/java/jre/lib/sparc/client/libjvm.so"
| JVM Name:        "server"
|                  "/usr/java/jre/lib/sparc/server/libjvm.so"
+-------------------------------------------------------
...


=== Making 64-bit ===


$ ./configure CC=cc CFLAGS=-m64 LDFLAGS=-m64 --build=sparcv9-sun-solaris2
$ make
$ cp jsvc $HOME/apache-tomcat/bin
$ cd $HOME/apache-tomcat/bin
$ sudo ./jsvc -debug -cp commons-daemon-1.0.5.jar:bootstrap.jar org.apache.catalina.Bootstrap
....
+-- DUMPING JAVA HOME STRUCTURE ------------------------
| Java Home:       "/usr/java"
| Java VM Config.: "/usr/java/jre/lib/sparcv9/jvm.cfg"
| Found JVMs:      1
| JVM Name:        "server"
|                  "/usr/java/jre/lib/sparcv9/server/libjvm.so"
+-------------------------------------------------------
...


So you now know it works ;)

Regards
-- 
^TM

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


Mime
View raw message