Issue Type: Feature Request Feature Request
Affects Versions: 1.1.10.Final
Assignee: Jozef Hartinger
Components: OSGi support
Created: 22/Jan/13 2:50 AM
Description:

By only exporting the slf4j api, the weld-osgi-core-mandatory bundle can not be correctly integrated into an existing slf4j setup, such as the one provided by Karaf.

The following patch solves the problem.

diff --git a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
index 44b74ca..4e81452 100644
--- a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
+++ b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
@@ -1,5 +1,6 @@
 Import-Package org.osgi.framework, \
-               javax.inject,
+               javax.inject, \
+               org.slf4j.*;version="[1.6,2)";resolution:=optional,
 
 Export-Package javax.el;version=2.2.0, \
                javax.decorator; \
Project: Weld
Priority: Major Major
Reporter: Guillaume Nodet
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira