Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311595 - ch.qos.logback.classic-0.9.19.v20100419-1216 misses a package import
Summary: ch.qos.logback.classic-0.9.19.v20100419-1216 misses a package import
Status: RESOLVED FIXED
Alias: None
Product: Orbit
Classification: Tools
Component: bundles (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Hugues Malphettes CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 14:01 EDT by Hugues Malphettes CLA
Modified: 2010-05-06 21:45 EDT (History)
2 users (show)

See Also:


Attachments
patch for logback-classic's manifest (781 bytes, patch)
2010-05-06 14:00 EDT, Hugues Malphettes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hugues Malphettes CLA 2010-05-04 14:01:21 EDT
Hi there, when using slf4j and logback-0.9.19 with jetty the stack trace is thrown:

java.lang.NoClassDefFoundError: ch/qos/logback/core/encoder/Encoder
       at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:123)
       at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:83)
       at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)

To resolve this issue I added an import to ch.qos.logback.classic:
ch.qos.logback.classic.encoder;version="0.9.19"

Gunnar is the maintainer of the slf4j and logback bundles but if that helps I don't mind looking after this fix.
Let me know.
Comment 1 Gunnar Wagenknecht CLA 2010-05-06 13:30:52 EDT
As discussed on the mailing list. The fix is trivial. Please attach a patch. Thanks!
Comment 2 Hugues Malphettes CLA 2010-05-06 14:00:28 EDT
Created attachment 167354 [details]
patch for logback-classic's manifest

The missing import is in fact:
ch.qos.logback.core.encoder;version="0.9.19"
Comment 3 Gunnar Wagenknecht CLA 2010-05-06 16:52:18 EDT
Thanks Hugues. Patch looks good. Please go ahead and commit!
Comment 4 Hugues Malphettes CLA 2010-05-06 17:22:55 EDT
OK patch committed. The new tag is v20100506-1420
And I have updated the bundles.map file with it for logback-classic
Thanks for your attention!
Comment 5 Hugues Malphettes CLA 2010-05-06 21:45:21 EDT
OK fixed starting with this build http://download.eclipse.org/tools/orbit/committers/drops/I20100506221749/
I verified that the new import is in.