You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Brian Topping <to...@codehaus.org> on 2012/04/26 06:35:44 UTC

Loading of feature within 2.2.7

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

Re: Loading of feature within 2.2.7

Posted by Brian Topping <to...@codehaus.org>.
Hi JB, kind thanks for your input on this. 

I have solved this problem before with jre.properties (and indeed it solved it here), I was more noting that the behavior of the issue was different on subsequent runs.  It makes sense that there may be some state from the previous feature:install that was left over, but I just hadn't seen that kind of thing before and thought it was better to note it than be silent.

best, B

On Apr 26, 2012, at 1:49 AM, Jean-Baptiste Onofré wrote:

> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


Re: Loading of feature within 2.2.7

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Loading of feature within 2.2.7

Posted by Daniel Kulp <da...@kulp.com>.
You need to use the etc/jre.properties.cxf instead of the default.


Dan


On Thursday, April 26, 2012 12:35:44 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
-- 
Daniel Kulp
dan@kulp.com
http://dankulp.com/blog