commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Portabella Clotet <da...@portabella.name>
Subject [Commons-Daemon] jsvc error: Cannot execute JSVC executor process
Date Fri, 27 Jan 2006 15:40:58 GMT
Hello,

I am getting always the same error "Cannot execute JSVC executor
process" when I execute jsvc.
I've tried with the provided example AloneService, and also with a
very simple of mine, given below (Test.java).

What can be the problem?

Regards,
DAvid


> jsvc -debug -cp test.jar Test
jsvc debug: +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
jsvc debug: | Detach:          True
jsvc debug: | Show Version:    No
jsvc debug: | Show Help:       No
jsvc debug: | Check Only:      Disabled
jsvc debug: | Run as service:  No
jsvc debug: | Install service: No
jsvc debug: | Remove service:  No
jsvc debug: | JVM Name:        "(null)"
jsvc debug: | Java Home:       "(null)"
jsvc debug: | PID File:        "/var/run/jsvc.pid"
jsvc debug: | User Name:       "(null)"
jsvc debug: | Extra Options:   1
jsvc debug: |   "-Djava.class.path=test.jar"
jsvc debug: | Class Invoked:   "Test"
jsvc debug: | Class Arguments: 0
jsvc debug: +-------------------------------------------------------
jsvc debug: Home not specified on command line, using environment
jsvc debug: Attempting to locate Java Home in /opt/sun-jdk-1.5.0.05
jsvc debug: Attempting to locate VM configuration file
/opt/sun-jdk-1.5.0.05/jre/lib/jvm.cfg
jsvc debug: Attempting to locate VM configuration file
/opt/sun-jdk-1.5.0.05/lib/jvm.cfg
jsvc debug: VM configuration file not found
jsvc debug: Attempting to locate VM library
/opt/sun-jdk-1.5.0.05/jre/lib/i386/classic/libjvm.so
jsvc debug: Attempting to locate VM library
/opt/sun-jdk-1.5.0.05/jre/lib/i386/client/libjvm.so
jsvc debug: Java Home located in /opt/sun-jdk-1.5.0.05
jsvc debug: +-- DUMPING JAVA HOME STRUCTURE ------------------------
jsvc debug: | Java Home:       "/opt/sun-jdk-1.5.0.05"
jsvc debug: | Java VM Config.: "(null)"
jsvc debug: | Found JVMs:      1
jsvc debug: | JVM Name:        "(null)"
jsvc debug: |                 
"/opt/sun-jdk-1.5.0.05/jre/lib/i386/client/libjvm.so"
jsvc debug: +-------------------------------------------------------
jsvc debug: Using default JVM in
/opt/sun-jdk-1.5.0.05/jre/lib/i386/client/libjvm.so
jsvc debug: Invoking w/
LD_LIBRARY_PATH=/opt/sun-jdk-1.5.0.05/jre/lib/i386/client:/opt/sun-jdk-1.5.0.05/jre/lib/i386
jsvc error: Cannot execute JSVC executor process


=====
import org.apache.commons.daemon.*;

public class Test implements Daemon {
    public void init(DaemonContext context) throws Exception {
        System.out.println("A.init");
    }

    public void start() throws Exception {
        System.out.println("A.start");
    }

    public void stop()  throws Exception {
        System.out.println("A.stop");
    }

    public void destroy() {
        System.out.println("A.destroy");
    }
}

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


Mime
View raw message