Bug#477363: tomcat5.5 5.5.26-1 can not start

Thomas Huriaux thomas.huriaux at gmail.com
Thu Apr 24 13:26:18 UTC 2008


Hi,

Michael Koch <konqueror at gmx.de> (24/04/2008):
> On Tue, Apr 22, 2008 at 07:15:14PM +0300, Moshe Gorohovsky wrote:
> > Tomcat 5.5.26-1 can not start.
> > Running /etc/init.d/tomcat5.5 start yelds following
> > lines in /var/log/syslog:
> >   jsvc.exec[3606]: java.lang.NoClassDefFoundError:
> >   org/apache/commons/logging/LogFactory
> >   ...
> >   jsvc.exec[3606]: Caused by: java.lang.ClassNotFoundException:
> >   org.apache.commons.logging.LogFactory
> 
> I can't reproduce this here. Can you please mail the complete
> stacktraces? Can it be that the stacktrace is from one fo your web apps?

I can easily reproduce it. The full stacktrace is the following:

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
	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:139)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	... 8 more

I suggest you apply the attached patch instead of Moshe's one.


Cheers,

-- 
Thomas Huriaux			huriaux at argia-engineering.fr
Argia Engineering		+33-1-47-12-99-93
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tomcat5.5.patch
Type: text/x-diff
Size: 627 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20080424/fcdff210/attachment.patch 


More information about the pkg-java-maintainers mailing list