You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by David Parks <da...@yahoo.com> on 2010/09/02 02:18:58 UTC

[Daemon] jsvc.exec error: Cannot register native methods

Anyone have a clue what this means?

I just built jsvc on a fedora 12 linux box (built from the most recent
"commons-daemon-1.0.3-src.tar.gz" source).
I'm launching tomcat under it:

/usr/local/tomcat/bin/jsvc \
	-jvm server \
	-user tomcat \
	-home $JAVA_HOME \
	-outfile /usr/local/tomcat/logs/jsvc_out.log \
	-errfile /usr/local/tomcat/logs/jsvc_err.log \
	
-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties \
	-Dsun.net.inetaddr.ttl=30 \
	-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
	-Djava.endorsed.dirs=/usr/local/tomcat/endorsed \
	-classpath /usr/local/tomcat/bin/bootstrap.jar \
	-Dcatalina.base=/usr/local/tomcat \
	-Dcatalina.home=/usr/local/tomcat \
	-Djava.io.tmpdir=/usr/local/tomcat/temp \
	org.apache.catalina.startup.Bootstrap start


-bash-4.0# tail jsvc_err.log
01/09/2010 20:13:09 13620 jsvc.exec error: Cannot register native methods
01/09/2010 20:13:09 13619 jsvc.exec error: Service exit with a return value
of 1



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


Re: [Daemon] jsvc.exec error: Cannot register native methods

Posted by Mladen Turk <mt...@apache.org>.
On 09/02/2010 02:18 AM, David Parks wrote:
> Anyone have a clue what this means?
>
> 	-classpath /usr/local/tomcat/bin/bootstrap.jar \
>
> -bash-4.0# tail jsvc_err.log
> 01/09/2010 20:13:09 13620 jsvc.exec error: Cannot register native methods
> 01/09/2010 20:13:09 13619 jsvc.exec error: Service exit with a return value
> of 1
>

You'll need to add the commons-daemon.jar to the classpath as well.

Regards
-- 
^TM

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