Questions tagged [spring-jersey]

Use this tag on issues regarding integrating jersey with spring (or vice versa)

57 questions
5
votes
2 answers

Can no longer obtain form data from HttpServletRequest SpringBoot 2.2, Jersey 2.29

We have a SpringBoot application and are using Jersey to audit incoming HTTP requests. We implemented a Jersey ContainerRequestFilter to retrieve the incoming HttpServletRequest and use the HttpServletRequest's getParameterMap() method to extract…
fei0x
  • 4,259
  • 4
  • 17
  • 37
5
votes
1 answer

Unpacking jersey libraries in spring boot jar

I have a project spring boot with a jersey dependency: org.springframework.boot spring-boot-starter-jersey When I do a spring-boot:run all the context gets up perfect…
Francesc Recio
  • 2,187
  • 2
  • 13
  • 26
4
votes
1 answer

spring-boot-jersey with JAX-RS API 2.1 (SSE)

What is the timeline for supporting Spring Boot with JAX-RS 2.1 (using Jersey)? Jersey added support for JAX-RS 2.1 (JAX-RS API) in Jersey 2.26 (released 2017/09/06). This changed the Jersey support for HTTP Server-Sent Events (SSE) from a Jersey…
rwfbc
  • 900
  • 1
  • 10
  • 22
2
votes
0 answers

How to access Jersey's contextual objects in an aspect when using Spring?

I am working with Spring 5.2.x together with Jersey 2.30.x for JAX-RS. I have an annotation as following: @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyAnnotation { } In my…
user8870331
2
votes
1 answer

Nosuchmethoderror:org.glassfish.jersey.internal.l10n.LocalizableMessageFactory

I m working with jersey2.29 and Spring 4 to develop a web application. The following are my dependencies. When starting Tomcat server 8 server, it doesn't start and I get the following error Caused by: java.lang.NoSuchMethodError:…
2
votes
2 answers

Handler method in Spring Boot with Jersey not found in test

Spring Boot / Jersey can not find a handler method when the application is startet and accessed from a test. If I start the application separately and access http://localhost:8080/demo with a browser everything is fine. The log says: "Did not find…
deamon
  • 89,107
  • 111
  • 320
  • 448
2
votes
1 answer

Jsp is not getting compiled by Jersey within a spring boot app

I am trying to setup a spring boot app with Jersey. The Rest API is working fine however the view (jsp) is getting rendered as is as plain text on browser. I tried including jstl in my dependencies , once I include it ; server starts returning blank…
Pratik
  • 246
  • 1
  • 9
2
votes
0 answers

Concurrent Execution Exception while starting Tomcat in Eclipse

Tomcat server is not starting in eclipse which was working fine before but now its showing the following exception. In this application using the jersey to consume the API Any Jar is missing? Caused by: java.lang.ClassNotFoundException:…
1
vote
0 answers

Jersey1.0 to Jersey 2.0 migration producing UniformInterfaceException

I am migrating from Jersey 1.19.4 to Jersey 2.31 It is producing UniformInterfaceException. I am totally new to Jersey. Can anyone please help me to investigate and fix this? java.lang.NoClassDefFoundError:…
1
vote
1 answer

How to change the CookieSpec in Jersey Client?

I used Jersey Client in the project like this: clientConfig.connectorProvider(new ApacheConnectorProvider()); clientConfig.register(MultiPartFeature.class); client = ClientBuilder.newClient(clientConfig); it actually use httpClient to do the job.…
1
vote
2 answers

Spring-boot jersey crash with file not found exception when runs from jar. Running from source it works without any issue

When I run it from Idea it works great. I generate jar using gradle bootJar. When I run it I am getting: java -jar server-0.0.1-SNAPSHOT.jar . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
1
vote
1 answer

Rest API with both Json and a csv file as attachment

Can we provide both Json response as well as a csv file as attachment in a Rest Service? I have written a code like below, but I am also sure its not going to work. ResponseBuilder responseBuilder = null; responseBuilder =…
Anil Kumar P
  • 541
  • 1
  • 9
  • 27
1
vote
0 answers

Control migration of a spring jersey app to webflux through a feature flag

We are thinking of how to migrate spring jersey app to webflux gradually, by converting jersey services to webflux controllers, and converting jersey filters to webfilters one by one, controlled by a feature flag. Since webflux can run on modern…
Salil
  • 9,534
  • 9
  • 42
  • 56
1
vote
1 answer

How to fix 403 forbidden in Spring security and Spring data JPA with Jersey rest

I am getting 403 Forbidden from rest api which is using Spring Security's JDBC Authentication. I have written simple restful api using Jersey with Spring boot and tried to implement Spring Security with inMemoryAuthentication() method and that works…
1
vote
0 answers

How to POST multipartfile from springboot to jersey using the spring rest template?

How can I use spring rest template to POST MultipartFile to a Jersey Endpoint that takes the input as MesssageContext? Do I need to convert the MultipartFile in a format acceptable by the MessageContext of Jersey? Here is the Jersey endpoint that i…
Simar Singh
  • 415
  • 1
  • 7
  • 14
1
2 3 4