You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "Ashley Kasim (akasim)" <ak...@cisco.com> on 2015/09/14 22:26:57 UTC

'javax.annotation' issue when installing cxf feature in karaf

Hello,

I have the following issue when attempting to install the cxf feature after another feature in karaf 3.0.4:

karaf@root()> feature:install cxf
Refreshing bundles org.apache.servicemix.bundles.jaxb-impl (82)
Error executing command: Can't install feature cxf/0.0.0:
Could not start bundle mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.1.2 in feature(s) cxf-jaxrs-3.1.2: Uses constraint violation. Unable to resolve bundle revision org.apache.cxf.cxf-rt-frontend-jaxrs [198.0] because it is exposed to package 'javax.annotation' from bundle revisions javax.annotation-api [154.0] and org.apache.felix.framework [0] via two dependency chains.

Chain 1:
org.apache.cxf.cxf-rt-frontend-jaxrs [198.0]
import: (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package=javax.annotation
javax.annotation-api [154.0]

Chain 2:
org.apache.cxf.cxf-rt-frontend-jaxrs [198.0]
import: (&(osgi.wiring.package=org.springframework.context.annotation)(version>=3.1.0)(!(version>=5.0.0)))
|
export: osgi.wiring.package=org.springframework.context.annotation; uses:=javax.annotation
org.apache.servicemix.bundles.spring-context [69.0]
import: (osgi.wiring.package=javax.annotation)
|
export: osgi.wiring.package=javax.annotation
org.apache.felix.framework [0]

This seems to be similar to this issue with camel: http://camel.465427.n5.nabble.com/Issue-with-javax-annotation-when-installing-camel-followed-by-cxf-feature-td5765376.html

Any idea on resolving this?

Thanks,

Ashley Kasim

Re: 'javax.annotation' issue when installing cxf feature in karaf

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Ashley,

it should be fixed in 3.0.5 coming release.

Regards
JB

On 09/14/2015 10:26 PM, Ashley Kasim (akasim) wrote:
> Hello,
>
> I have the following issue when attempting to install the cxf feature
> after another feature in karaf 3.0.4:
>
> karaf@root()> feature:install cxf
> Refreshing bundles org.apache.servicemix.bundles.jaxb-impl (82)
> Error executing command: Can't install feature cxf/0.0.0:
> Could not start bundle
> mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.1.2 in feature(s)
> cxf-jaxrs-3.1.2: Uses constraint violation. Unable to resolve bundle
> revision org.apache.cxf.cxf-rt-frontend-jaxrs [198.0] because it is
> exposed to package 'javax.annotation' from bundle revisions
> javax.annotation-api [154.0] and org.apache.felix.framework [0] via two
> dependency chains.
>
> Chain 1:
> org.apache.cxf.cxf-rt-frontend-jaxrs [198.0]
> import:
> (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))
> |
> export: osgi.wiring.package=javax.annotation
> javax.annotation-api [154.0]
>
> Chain 2:
> org.apache.cxf.cxf-rt-frontend-jaxrs [198.0]
> import:
> (&(osgi.wiring.package=org.springframework.context.annotation)(version>=3.1.0)(!(version>=5.0.0)))
> |
> export: osgi.wiring.package=org.springframework.context.annotation;
> uses:=javax.annotation
> org.apache.servicemix.bundles.spring-context [69.0]
> import: (osgi.wiring.package=javax.annotation)
> |
> export: osgi.wiring.package=javax.annotation
> org.apache.felix.framework [0]
>
> This seems to be similar to this issue with camel:
> http://camel.465427.n5.nabble.com/Issue-with-javax-annotation-when-installing-camel-followed-by-cxf-feature-td5765376.html
>
> Any idea on resolving this?
>
> Thanks,
>
> Ashley Kasim

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com