camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: svn commit: r1222709 - /camel/trunk/platforms/karaf/features/src/main/resources/features.xml
Date Mon, 26 Dec 2011 03:38:28 GMT
That is why we should leave the javax api work to the OSGi container.
If we did a wrong assuming in the apache-camel feature, we will mass up 
the whole container run time.

Why don't we let the container do its own business.


On 12/24/11 4:56 PM, Jean-Baptiste Onofré wrote:
> FYI,
>
> karaf@root> packages:exports |grep -i bind
> 0 javax.xml.bind; version=0.0.0
> 0 javax.xml.bind.annotation; version=0.0.0
> 0 javax.xml.bind.annotation.adapters; version=0.0.0
> 0 javax.xml.bind.attachment; version=0.0.0
> 0 javax.xml.bind.helpers; version=0.0.0
> 0 javax.xml.bind.util; version=0.0.0
> 50 javax.xml.bind.attachment; version=2.2.1
> 50 javax.xml.bind.helpers; version=2.2.1
> 50 javax.xml.bind.annotation; version=2.2.1
> 50 javax.xml.bind.util; version=2.2.1
> 50 javax.xml.bind.annotation.adapters; version=2.2.1
> 50 javax.xml.bind; version=2.2.1
>
> camel-hdfs uses ServiceMix JAXWS API, and here's the JAXWS API import
> statements:
> Import-Package =
> javax.xml.bind;version=2.2,
> javax.xml.bind.annotation;version=2.2,
> javax.xml.namespace,
> javax.xml.soap;version=1.3,
> javax.xml.transform,
> javax.xml.transform.stream,
> org.osgi.framework;version=1.5,
> org.w3c.dom
>
> That's why we NEED the JAXB 2.2 bundle. If we use the javax.xml.bind
> provided by the JRE, we have a version mismatch.
>
> That's why I think there is no issue (as we use a specific JAXB
> version), and we have to include it.
>
> Regards
> JB
>
> On 12/24/2011 09:29 AM, Willem Jiang wrote:
>> -1 for it.
>> As it brokes CAMEL-4671 even we don't add the dependency of the
>> xml-specs-api feature on the camel-core.
>> And it make it wore, the user need to remove lots of xml-specs-api this
>> time.
>>
>> If we want to support to install the feature out of box, we may consider
>> to provide two kind of feature this time.
>>
>> On Fri Dec 23 23:56:36 2011, jbonofre@apache.org wrote:
>>> Author: jbonofre
>>> Date: Fri Dec 23 15:56:36 2011
>>> New Revision: 1222709
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1222709&view=rev
>>> Log:
>>> [CAMEL-4818] camel-hdfs and camel-soap reference xml-specs-api feature
>>>
>>> Modified:
>>> camel/trunk/platforms/karaf/features/src/main/resources/features.xml
>>>
>>> Modified:
>>> camel/trunk/platforms/karaf/features/src/main/resources/features.xml
>>> URL:
>>> http://svn.apache.org/viewvc/camel/trunk/platforms/karaf/features/src/main/resources/features.xml?rev=1222709&r1=1222708&r2=1222709&view=diff
>>>
>>>
>>> ==============================================================================
>>>
>>>
>>> ---
>>> camel/trunk/platforms/karaf/features/src/main/resources/features.xml
>>> (original)
>>> +++
>>> camel/trunk/platforms/karaf/features/src/main/resources/features.xml
>>> Fri Dec 23 15:56:36 2011
>>> @@ -282,6 +282,7 @@
>>> <bundle>mvn:org.apache.camel/camel-hawtdb/${project.version}</bundle>
>>> </feature>
>>> <feature name='camel-hdfs' version='${project.version}'
>>> resolver='(obr)' start-level='50'>
>>> +<feature version='${servicemix-specs-version}'>xml-specs-api</feature>
>>> <feature version='${project.version}'>camel-core</feature>
>>> <feature>war</feature>
>>> <bundle
>>> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/${servicemix-specs-version}</bundle>
>>>
>>>
>>> @@ -595,6 +596,7 @@
>>> <bundle>mvn:org.apache.camel/camel-snmp/${project.version}</bundle>
>>> </feature>
>>> <feature name='camel-soap' version='${project.version}'
>>> resolver='(obr)' start-level='50'>
>>> +<feature version='${servicemix-specs-version}'>xml-specs-api</feature>
>>> <feature version='${project.version}'>camel-jaxb</feature>
>>> <bundle
>>> dependency="true">mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/${geronimo-ws-metadata-spec-version}</bundle>
>>>
>>>
>>> <bundle
>>> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/${servicemix-specs-version}</bundle>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message