Use this tag on issues regarding integrating jersey with spring (or vice versa)
Questions tagged [spring-jersey]
57 questions
0
votes
1 answer
JerseyTest framework: Testing my proxyservlet in integration tests
I have a ProxyServlet (org.mitre.dsmiley.httpproxy) in my code which does some operations and forwards certain url's ending with */xyz to a different application. I have integration tests covering my application( using JerseyTest framework) and want…

Somtirtha Ghosh
- 57
- 7
0
votes
0 answers
Spring + Jersey Integration Issue - SpringScopeContext must be in the Singleton scope
I am having trouble integrating Jersey with Spring. I am getting the following exception while starting up the server.
Jersey 2.32, Spring 5.2.12, Weblogic:12.2.1.3
WARNING: The following warnings have been detected: WARNING: HK2 failure has been…

SSK
- 1
- 1
0
votes
1 answer
Jersey 2 and Spring Boot - Not able to inject using @Context on Provider
Using Jersey 2.3 on Spring Boot 2.4. I have 2 JAX-RS providers. One of them implements ContainerRequestFilter(PreMatching) and another one extends JacksonJaxbJsonProvider(from jackson-jaxrs-json-provider).
I am setting a property in…

Abhijith Prabhakar
- 1,325
- 3
- 12
- 24
0
votes
1 answer
Using Jersey with Spring Boot
The Spring Boot Reference Documentation in section titled 7.3 JAX-RS and Jersey mentions "All the registered endpoints should be @Components with HTTP resource annotations (@GET and others). Since the Endpoint is a Spring @Component, its lifecycle…

Rahul Khimasia
- 473
- 12
- 24
0
votes
0 answers
Using Springboot Mapping (RequestMapping, PathVariable, etc) on spring-boot-starter-jersey project with JAX-RS Mapping (@Path, @GET, etc)
I'm adding a new set of features to a micro-service which I originally developed in Jersey (years ago) and later ported to springboot-jersey (a few less years ago).
Since then I got used to other frameworks and languages, so I want to:
1- Use…

loveMeansN0thing
- 11
- 3
0
votes
0 answers
Spring does not inject dependencies in JAX-RS defined sub-resource
I have an application build via Spring Boot and using JAX-RS (Jersey). For JAX-RS resources Spring DI works fine but for sub-resources - not. I will provide examples…

Maksim
- 351
- 1
- 2
- 12
0
votes
1 answer
Spring-boot how can i consume XML RPC server using jersey
Spring-boot how can i consume XML RPC server using jersey
I am using spring boot 2.2.4
and I have the API from a XML RPC server, can I consume it using jersey

ehirwa
- 31
- 3
0
votes
0 answers
RESTeasy and the @MultipartForm , server and client
Walking through the RESTEasy Guide 4.4.0-final from jboss.
Having the examples to guide be as well.
Wanting to create a small service where you post a binary-file with some metadata. In this particular case I would like to post a file + 'the owner…

InKi
- 79
- 2
- 10
0
votes
5 answers
Always call function before @RequestMapping function
I'm creating a API spring service using spring framework.
I've several @RequestMapping function for each endpoint that i define. In every @RequestMapping function, i have a function to check several authorization variables before continue.
Can I…

Sudarsono Sung
- 83
- 1
- 11
0
votes
1 answer
HK2InjectionManager with jersey, upgrading with OpenJDK11
Ran into a few errors as I am upgrading jdk11 and jersey but this one particularly stumped. So jersey 2.28 is supposedly compatible with OpenJDK11 and fixed some issues that was previously in 2.25.1, so I upgraded it
I also saw this already, not a…

Bao Thai
- 533
- 1
- 6
- 25
0
votes
1 answer
Passing arguments from REST API application properties to registered ApplicationEventListener
In one of my use case I want to pass multiple parameters from application resource properties of Spring boot Rest API and this parameters should be listen by registered ApplicationEventListener or by ApplicationEvent in Jersey. Can some body please…

Harry
- 15
- 2
- 9
0
votes
1 answer
MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class java.lang.Long
Faced issue while configuring Moxy Json Feature from Jackson feature to Springboot + Jersey Application.
Changes done -
In ResourceConfig Extended Class -
//register(JacksonJsonProvider.class); #Commented
register(MoxyJsonFeature.class);
Added the…

SaratBhaswanth
- 340
- 7
- 18
0
votes
0 answers
Adding @Provider when using Spring with jersey
We are working mainly with Spring application integrating jersey, we can add @Provider for Exception Providers and Filters (as ContainerRequestFilter)
Can adding @Provider cause problems while using Spring's initialization…

Ori Marko
- 56,308
- 23
- 131
- 233
0
votes
1 answer
when i replace jersey annotations with spring rest it throw exception 404 Not found
I got 404 exception, when i replace jersey annotations with spring rest annotations.

user3796427
- 11
- 1
- 3
0
votes
0 answers
Should I accept a 25% overhead on a Spring Boot (Jersey) request?
I'm working on a Spring Boot REST API which uses Jersey.
Data generated by an instrumentation tool indicates that about 100 ms. are being spent on "stuff" which happens after the invoked resource method returns. The instrumentation tool doesn't (out…

sbrattla
- 5,274
- 3
- 39
- 63