Hi,
I'm trying to run a java daemon using jsvc and the Daemon interface. The java
project is a jar file which has a bunch of dependencies in a manifest file
(including commons-daemon), and I add this jar file to the classpath when
running jsvc. When I try to execute via jsvc however, I get
jsvc.exe -outfile stdout.out -errfile stderr.errcat stdout.out
cat stderr.err
report back the results
Martin
From: andrew.mar...@exactearth.com
To: user@commons.apache.org
Subject: [daemon]
Date: Thu, 17 Jul 2014 16:24:14 +
Hi,
I’m trying to run a java daemon using jsvc and the
The output is identical to what I sent in the last email:
java.lang.InstantiationException: mypackage.MyClass
at java.lang.Class.newInstance(Class.java:359)
at
org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:190)
17/07/2014 17:39:24 10600 jsvc.exec error:
Hi,
I am looking for a version of ByteArrayOutputStream and DataOutputStream
without synchronization. Does Apache Commons IO have this as part of their
library? Or do you have a suggestion on an other class that has the same
functionality with out synchronization. In my case, I can get 10 to 20%
can you display PATH, CLASSPATH and JAVA_HOME please
assume:
PATH folder = folders for all executables?
CLASSPATH folders = contains all classes referenced by main java
class..including local folder e.g. $CLASSPATH = .:$CLASSPATH ?
files that are read are in SAME directory where you executed
Hi Martin,
PATH=
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/apache-maven-3.1.1/bin:/root/bin
I don't have JAVA_HOME set as an environment variable but I pass it into jsvc:
/usr/lib/jvm/java-1.7.0
CLASSPATH: The full pathname to my main jar.
i assume this is not a permissions issue
does your main class implement org.apache.commons.daemon.Daemon?
does your main class override init method?
@Override
public void init(DaemonContext dc) throws DaemonInitException, Exception
does your main class override start method?
@Override
public