Discussion:
ApplicationPath not in the jar file
d***@public.gmane.org
2012-01-12 17:54:26 UTC
Permalink
Hi,

I am just starting with Jersey and am using a Servlet 3.0 container so
I can deploy without using the web.xml deployment descriptor. This
requires using the @ApplicationPath annotation on my Application class.

However, eclipse won't compile this. When I look at the contents of my
jsr311-api-0.8.jar file there is no ApplicationPath type. All of the
other types defined in the javax.ws.rs package, (where that type is
supposed to live), are present in the jar.

I am using ivy to retrieve this from the maven repository. It gets me
all the jars I need, but this missing type is strange. Any help would
be greatly appreciated.

Regards!
Pavel Bucek
2012-01-12 18:31:27 UTC
Permalink
Hi David,

I didn't even know that 0.8 version of API is available somewhere.. its
pretty old, you should not be using it.

try this one:
http://search.maven.org/remotecontent?filepath=javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar

I pressume you are using Jersey 1.2+ (and if not, I recommend to upgrade
to 1.11, if you can).

Regards,
Pavel
Post by d***@public.gmane.org
Hi,
I am just starting with Jersey and am using a Servlet 3.0 container so
I can deploy without using the web.xml deployment descriptor. This
However, eclipse won't compile this. When I look at the contents of my
jsr311-api-0.8.jar file there is no ApplicationPath type. All of the
other types defined in the javax.ws.rs package, (where that type is
supposed to live), are present in the jar.
I am using ivy to retrieve this from the maven repository. It gets me
all the jars I need, but this missing type is strange. Any help would
be greatly appreciated.
Regards!
Loading...