Questions tagged [jsr311]

JSR 311: JAX-RS: The Java API for RESTful Web Services

Specification: JSR 311

18 questions
38
votes
1 answer

jaxrs-api VS jsr311-api VS javax.ws.rs-api VS jersey-core VS jaxrs-ri

I have googled around quite a bit still am confused as to what each of the above exactly mean. Here is my understanding of it: jaxrs-api : contains only api. No implementation. But how is it different from JSR311 jsr311-api : JSR311 it is a…
Gadam
  • 2,674
  • 8
  • 37
  • 56
8
votes
2 answers

Missing dependency for field when trying to inject a custom context with Jersey

I have a custom context: public class MyContext { public String doSomething() {...} } I have created a context resolver: @Provider public class MyContextResolver implements ContextResolver { public MyContext getContext(Class
Tarlog
  • 10,024
  • 2
  • 43
  • 67
8
votes
1 answer

Does Spring MVC support JSR 311 annotations?

While helping out someone else, I noticed they were trying to do Spring development using the @GET, @Consumes, and @Path annotations. It is my understanding that these annotations come from the JSR-311 specification. I simply suggested that they…
nicholas.hauschild
  • 42,483
  • 9
  • 127
  • 120
3
votes
0 answers

Spring boot Jersey and Eureka maven starters integration

I'm trying to use both spring-cloud-starter-eureka (Brixton.M2) and spring-boot-starter-jersey maven dependencies in a Spring boot Project (1.3.0.RC1): org.springframework.cloud
herau
  • 1,466
  • 2
  • 18
  • 36
2
votes
0 answers

How to determine the request URI in a JAX-RS client's MessageBodyReader?

I am implementing a custom MessageBodyReader that needs to resolve URIs against the request URI during processing. If the MessageBodyReader is used in a JAX-RS server implementation, which eg. processes incoming POST requests, I can obtain the…
kaefer3000
  • 23
  • 4
2
votes
1 answer

JAX-RS External Service Library

I have a group of cut and paste JAX-RS 1.1.1 annotated classes that I share between 4 services. These are management services that provide telemetry from process like hibernate and a common version info resource. In my web.xml I supply the fully…
DRaehal
  • 1,162
  • 9
  • 16
2
votes
1 answer

What is the difference between rs-api and jsr311-api

Both seem to provide the same interfaces but I could not find a definite answer on what the difference between the two is (and which one to take). JSR311: https://jsr311.java.net/nonav/releases/1.1/index.html rs-api:…
andruso
  • 1,955
  • 1
  • 18
  • 26
2
votes
2 answers

Does JAX-RS/Jersey 2.x utilize servlet 3.0 async capability?

Does JAX-RS/Jersey 2.x utilize servlet 3.0 async capability? or it is just another async layer on top of old-fashioned thread/request based servlet architecture.
Mike Lee
  • 111
  • 7
2
votes
2 answers

Jersey loses id field

I am using Jersey as JSR 311 implementation. The object i am trying to convert to JSON looks like this: @XmlRootElement public class deliveryTimes{ private Integer id; private Short type; private Integer orderId; /* ... more fields and…
1
vote
1 answer

jersey (JSR-311), how to implement @POST in container pattern

From NetBeans, I created a new REST webservice (using jersey), using the built-in wizards. in the container resource class, it created a stub, @POST @Consumes("application/json") @Produces("application/json") public Response postJson(Identity…
Jeffrey Blattman
  • 22,176
  • 9
  • 79
  • 134
1
vote
0 answers

Multiple dex files define Ljavax/ws/rs/ApplicationPath; while using jersey jsr 311 in android

I have searched lot on this issue and spent more than 3 days but none of the thread helped me. I am using Jersey oAuth to access webservice. below is my code for jersey oAuth. private SSRestServiceClient(String url, String consumerKey, String…
Nirav Bhandari
  • 4,550
  • 6
  • 32
  • 59
0
votes
1 answer

Adding Spring Cloud Config to boot app causes java.lang.NoSuchMethodError by adding unwanted jar to class path

I have a working Spring boot app. I changed the application to read its configuration from Spring Cloud Config server. I added bootstrap.properties and the following dependencies to the pom:
0
votes
1 answer

Replace jersey-bundle-1.12 with Jsr311-api-1.1.1

I am trying to replace Jersey-bundle with jsr311-api but after replacing it on pom.xml I am getting java.lang.CLassNotFoundException com.sun.ws.rs.ext.runtimedelegateimpl When I debug a little I found that in…
Mohammed
  • 637
  • 13
  • 26
0
votes
1 answer

Code works on dev server, fails to start on GAE

Till recently my code had been working fine, on GAE and on dev server. Then recently I uploaded a new version and that doesn't work at all on the server, works just fine on my local machine (dev server). The older version continues to work on the…
markvgti
  • 4,321
  • 7
  • 40
  • 62
0
votes
1 answer

JSR311 deployment issue in weblogic

I have developed a web application(spring mvc , webservices) and tried deployed in tomcat 7, and weblogic 10.3.6. currently we are trying in weblogic 12c (12.1.1). the deployement was successfull. but when tried to invoke a page it giving below…
june
  • 101
  • 2
  • 10
1
2