Btw, I agree that camel-nmr shouldn't rely on jaxb/jaxws stuff, it was pulled 
in because of the test code, I just fixed it, SMX4-1204[1] track this issue
[1]https://issues.apache.org/jira/browse/SMX4-1204

Freeman
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-7, at 上午8:01, Freeman Fang wrote:

> Hi,
> 
> You need tell us which OSGi container/version you're using.
> I guess you're using Karaf but not Servicemix, right?
> This error comes from that system bundle 0 also export jaxb api package, this 
> doesn't happen in servicemix. Servicemix is fine-tuned with system packages 
> and other configuration so ensure it can support camel/cxf/activemq OOTB.
> 
> Freeman
> -------------
> Freeman Fang
> 
> FuseSource
> Email:[email protected]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: http://weibo.com/u/1473905042
> 
> On 2012-8-6, at 下午11:39, lichtin wrote:
> 
>> Hi
>> When trying to use NMR Camel component I'm running into its CXF dependency.
>> Could this dependency be removed? It may well be obsolete by now.
>> 
>> In particular I'm seeing the following problem:
>> 
>> org.osgi.framework.BundleException: Unable to resolve module
>> org.apache.servicemix.camel.component [187.0] because it is exposed to
>> package 'javax.xml.bind.annotation' from org.apache.felix.framework [0] and
>> org.apache.servicemix.specs.jaxb-api-2.2 [93.0] via two dependency chains.
>> 
>> Chain 1:
>>  org.apache.servicemix.camel.component [187.0]
>>    import: (package=javax.xml.bind.annotation)
>>     |
>>    export: package=javax.xml.bind.annotation
>>  org.apache.felix.framework [0]
>> 
>> Chain 2:
>>  org.apache.servicemix.camel.component [187.0]
>>    import: (&(package=javax.xml.ws)(version>=2.2.0))
>>     |
>>    export: package=javax.xml.ws; uses:=javax.xml.bind.annotation
>>  org.apache.servicemix.specs.jaxws-api-2.2 [94.0]
>>    import: (&(package=javax.xml.bind.annotation)(version>=2.2.0))
>>     |
>>    export: package=javax.xml.bind.annotation
>>  org.apache.servicemix.specs.jaxb-api-2.2 [93.0]
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://servicemix.396122.n5.nabble.com/NMR-why-the-dependency-on-CXF-tp5714084.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 

Reply via email to