|
|
Re: NoClassDefFoundError for org/slf4j/LoggerFactory upon Xtext generation [message #897588 is a reply to message #896824] |
Tue, 24 July 2012 11:56   |
John Bito Messages: 54 Registered: July 2009 |
Member |
|
|
This turns out to be a problem that can be address by adjusting the MANIFEST.MF. At one point, org.apache.commons.logging was added to the Import-Package header. The Reguire-Bundle header must include o.a.c.logging, but if it appears in Import-Package, OSGi seems to grab it from some JDT (MyLyn?) bundle that configures it for slf4j. (Of course, an Eclipse that's not configured with JDT won't encounter this.)
If you encounter this, check that Require-Bundle has
org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional
and Import-Package has
org.apache.log4j
Thanks (as ever) to Sebastian Zarnekow for his prompt and expert advice!
[Updated on: Tue, 24 July 2012 11:59] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01898 seconds