Noticed bundle rest-service [155]: Unable to resolve 155.0: missing requirement [155.0] osgi.wiring.package; (osgi.wiring.package=org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser)
org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser is a class but not the package, in OSGi metadata header Import-Package should be a package, so it should be maven-bundle-plugin configuration isn't correct in your customer bundle ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-11-4, at 下午2:17, Srikanth Hugar wrote: > 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.SpringJAXRSServerFactoryBean" > 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.JAXRSServerFactoryBeanDefinitionParser) > 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]
