Hi Brian,

It seems that you mix JAXB XJC from ServiceMix with the JAXB implementation provided by the JRE.

Could you try:
- to comment javax.xml.bind* package in the etc/jre.properties
- deploy jaxb-impl from ServiceMix

?

Thanks,
Regards
JB

On 04/26/2012 06:35 AM, Brian Topping wrote:
I was mentioning this to Jamie last night.  The particular feature.xml I have 
baked causes this error to show up the first time an attempt to load this 
particular feature is made, but not the second:

Error executing command: Could not start bundle 
mvn:org.apache.cxf/cxf-bundle/2.5.2 in feature(s) cxf-2.5.2: Unable to resolve 
module org.apache.cxf.bundle [892.0] because it is exposed to package 
'javax.xml.bind.attachment' from org.apache.felix.framework [0] and 
org.apache.servicemix.specs.jaxb-api-2.2 [818.0] via two dependency chains.

Chain 1:
   org.apache.cxf.bundle [892.0]
     import: 
(&(package=javax.xml.bind.attachment)(version>=0.0.0)(!(version>=3.0.0)))
      |
     export: package=javax.xml.bind.attachment
   org.apache.felix.framework [0]

Chain 2:
   org.apache.cxf.bundle [892.0]
     import: (package=com.sun.tools.xjc.reader.xmlschema.parser)
      |
     export: package=com.sun.tools.xjc.reader.xmlschema.parser; 
uses:=javax.xml.bind
   org.apache.servicemix.bundles.jaxb-xjc [850.0]
     import: (&(package=javax.xml.bind)(version>=2.2.0)(!(version>=3.0.0)))
      |
     export: package=javax.xml.bind; uses:=javax.xml.bind.attachment
     export: package=javax.xml.bind.attachment
   org.apache.servicemix.specs.jaxb-api-2.2 [818.0]


I have not tested this behavior in 2.2.6 or dug very deep and don't feel it's a 
major deal, but can investigate it more if anyone is interested.

Cheers, Brian

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to