Hi, Looks like versions mismatch on the first view. Could you please run " imports | grep org.apache.cxf.jaxrs.spring " in Karaf and see which version of package is exported by frontend-jaxrs?
Regards, Andrei. > -----Original Message----- > From: Srikanth Hugar [mailto:[email protected]] > Sent: Dienstag, 4. November 2014 07:18 > To: [email protected] > Subject: Unable to wire package : > sgi.wiring.package=org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefiniti > onParser > > When I try to create base JAX-RS server, I am facing below exception. > > Apache Karaf version : 3.0.0 > CXF version : 2.7.x > Spring framework version : 3.2.x > > My OSGi bundle is importing the package > *org.apache.cxf.jaxrs.spring,version=[2.7,3) from org.apache.cxf.cxf-rt- > frontend-jaxrs (234)* > > But still bundle says missing requirement. > org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser -- Cannot > be resolved > > What could be the problem? > > *configuration:* > <bean id="baseJaxRSServer" abstract="true" lazy-init="false" > class="org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser.Spr > ingJAXRSServerFactoryBean" > init-method="create" p:address="/" p:providers-ref="jaxRSProviders" /> > > *Exception:* > Caused by: org.osgi.framework.BundleException: Unresolved constraint in > bundle rest-service [155]: Unable to resolve 155.0: missing requirement > [155.0] > osgi.wiring.package; > (osgi.wiring.package=org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefin > itionParser) > at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) > [org.apache.felix.framework-4.2.1.jar:na] > at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) > [org.apache.felix.framework-4.2.1.jar:na] > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955) ~[na:na]
