[fedora-java] Fedora 9: NoClassDefFoundError (LogFactory) starting Tomcat from Fedora Eclipse

Andrew Overholt overholt at redhat.com
Fri May 23 13:24:53 UTC 2008


Hi,

* Greg Johnson <gregjo at yahoo.com> [2008-05-22 16:33]:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> 
> [...]
> 
> Now here's where it got really interesting. Since it was complaining
> about LogFactory, I located it inside
> /usr/share/tomcat5/bin/commons-logging-api.jar
> 
> So, just for grins, I unjar'ed the contents of:
> /usr/share/tomcat5/bin/bootstrap.jar
> and
> /usr/share/tomcat5/bin/commons-logging-api.jar
> Then I jar'ed all of the contents of those two jar files back into:
> /usr/share/tomcat5/bin/bootstrap.jar
> 
> And now I can launch Tomcat from Fedora Eclipse just fine.
> This is obviously a classpath issue....but whose?

This sounds like something is different with the packaging of the tomcat
jars and how the Sysdeo plugin expects them to be.  You should file a
bug against the tomcat package to track this, but you could also email
the JPackage project since the tomcat RPMs in Fedora come from there
(AFAIK).  In fact, I recall reading something on jpackage-discuss about
tomcat jar contents a few months ago ... perhaps this is related.

HTH,

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20080523/14f0b3c5/attachment.sig>


More information about the fedora-devel-java-list mailing list