Step1: check that you imported(runtime import) those packages into your bundle:
-if you are building your bundle using maven-bundle-plugin, in the pom.xml do like this:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
...
<Import-Package>
javax.ws.rs*,
org.codehaus.jackson*,
org.apache.cxf.jaxrs*,
</Import-Package>
...
</instructions>
</configuration>
</plugin>
- Unless, list those packages in the manifest.mf.
Step 2:
ckeck that those packages are well deployed in your container: provided or manually deployed in the container.
If using Apache Karaf, there is a feature called cxf-jaxrs => install/start it.