|
|
Re: NoClassDefFoundError for javax.annotation.Priority [message #1023584 is a reply to message #1023533] |
Sun, 24 March 2013 16:42 |
Eduardo Fernández Messages: 7 Registered: October 2011 |
Junior Member |
|
|
Hi Violetta,
Thanks for your answer. This commons annotations bundle is already loaded, I downloaded the file jax-rs-ri-2.0-m13-3.tar.gz from Jersey site and I created the next plan with the bundles in the tarball:
<plan name="jersey" version="2.0.0" scoped="false" atomic="true"
xmlns="http://www.eclipse.org/virgo/schema/plan"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.eclipse.org/virgo/schema/plan
http://www.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">
<artifact type="bundle" name="org.glassfish.hk2.external.asm-all-repackaged" version="[2.1.76, 3)" />
<artifact type="bundle" name="org.glassfish.hk2.external.cglib" version="[2.1.76, 3)" />
<artifact type="bundle" name="com.google.guava" version="[14.0.0, 15.0.0)" />
<artifact type="bundle" name="org.glassfish.hk2.api" version="[2.1.76, 3)" />
<artifact type="bundle" name="org.glassfish.hk2.utils" version="[2.1.76, 3)" />
<artifact type="bundle" name="org.glassfish.hk2.external.javax.inject" version="[2.1.76, 3)" />
<artifact type="bundle" name="javax.ws.rs.javax.ws.rs-api" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.jersey.core.jersey-client" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.jersey.core.jersey-common" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.jersey.containers.jersey-container-servlet" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.jersey.containers.jersey-container-servlet-core" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.jersey.core.jersey-server" version="[2.0.0, 3)" />
<artifact type="bundle" name="org.glassfish.hk2.osgi-resource-locator" version="[1.0.1, 2)" />
<artifact type="bundle" name="javax.validation.api" version="[1.1.0, 2)" />
<artifact type="bundle" name="javax.annotation-api" version="[1.1.99, 2)" />
<artifact type="bundle" name="javax.servlet-api" version="[3.0.0, 4)" />
</plan>
I've tried downgrade the version of Jersey by using the 1.17 but I received the next exception when I ask for the RESTful resource:
com.sun.jersey.core.spi.scanning.ScannerException: The URI scheme bundleentry of the URI bundleentry://149.fwk650188911/WEB-INF/classes/jersey/test/RestService.class is not supported. Package scanning deployment is not supported for such URIs.
Try using a different deployment mechanism such as explicitly declaring root resource and provider classes using an extension of javax.ws.rs.core.Application
I just wanted to export my blueprint services by using JAX-RS (the implementation no matter) in Virgo Jetty Server, but this process is becoming painful.
I really appreciate any example with JAX-RS (Jersey or CXF) in Virgo Jetty Server.
Thanks in advance,
Eduardo Fernández.
|
|
|
Powered by
FUDForum. Page generated in 0.03242 seconds