wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat unix daemon can't load jsvc tomcat-juli.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat unix daemon can Watch "Tomcat unix daemon can New topic
Author

Tomcat unix daemon can't load jsvc tomcat-juli.jar

Joe Sanchez
Greenhorn

Joined: Oct 21, 2010
Posts: 6

Environment:
Tomcat 7.0.2 - running on 32-bit 1 GB ram
java version "1.6.0_21"
Debian 2.6.26-2-686
--
Tomcat directory (manual installation)
/srv/tomcat
/srv/tomcat/bin/tomcat-juli.jar
/srv/tomcat/bin/bootstrap.jar
/srv/tomcat/bin/native/unix/jsvc

All the paths are correctly addressed

EXECUTABLE
$DAEMON_HOME/native/unix/jsvc \
-user $TOMCAT_USER \
-debug \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.base=$CATALINA_BASE \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap

ERROR

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:147)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more

Any idea?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat unix daemon can't load jsvc tomcat-juli.jar
 
Similar Threads
Starting tomcat, getting java.lang.ClassNotFoundException
UnsupportedClassVersionError while startup.
Can not connect to Oracle DB from Netbeans 7
Cannot Run Apache-tomcat 6 on Centos 5.4
Tomcat unix daemon can't load jsvc tomcat-juli.jar