Use this tag on issues regarding integrating jersey with spring (or vice versa)
Questions tagged [spring-jersey]
57 questions
1
vote
0 answers
ignore jar packaging inside war maven tomcat plugin?
I am using maven Maven Tomcat 8 plugin to start up my tomcat server locally and deploy a war file with the intellij IDE.
For some reason when I try to start it with maven tomcat 8 plugin, it shows following stack trace and not getting…

Supun Wijerathne
- 11,964
- 10
- 61
- 87
1
vote
1 answer
@Autowired giving null pointer exception
I have done @Autowired annotation and also @Component annotation is calling and called classes. Still, I am getting Null pointer exception in "ServiceResource.java" -> serviceValidator value as null.
Please help me know where I am going…

Aishwarya Gupta
- 11
- 2
1
vote
1 answer
Jersey factory tries to create @Context variable twice
I have a problem with Jersey 2.26 and Spring Boot 2.
I added a factory to inject @Context variable into methods, but it does it twice, first before the method and then again after the method:
@GET
@Path("/user-entitlements")
public Set…

Krzysztof Krasoń
- 26,515
- 16
- 89
- 115
1
vote
1 answer
REST webservice - Errors while upgrading from Jersey 1 to Jersey 2 with Spring Jersey Plugin
I'm using Jersey 1.8 currently with Jersey Spring plugins 1.8 using JBoss EAP 6.3 and it's working fine with JDK 1.6. Now while upgrading to JDK 1.8 and JBoss EAP 6.4 the Jersey 1.0 is not supported while binding the response [1] . After which I…

Visagan
- 13
- 4
0
votes
0 answers
@ApplicationPath not recognized in spring boot 3 + jakarta
I'm using Spring boot 3.1.2. I try to extend jakarta.ws.rs.core.Application with custom implementation but the @ApplicationPath is not recognized.
Also the controller with @Path (jakarta.ws.rs.Path) and @GET(jakarta.ws.rs.GET) is not recognized but…

user3779482
- 11
- 3
0
votes
0 answers
Error faced in creating REST API project using Jersey implementation
Below is my pom.xml file
…

pooja inamdar
- 1
- 1
0
votes
0 answers
Maven reports "bad path element" when building spring boot 3 with glassfish jersey
Building a Spring Boot 3.0.6 application with Jersey (version 3.1.1) gives a strange maven warning:
[path] bad path element "/home/rmuller/.m2/repository/org/glassfish/hk2/hk2/3.0.3/hk2-utils.jar": no such file or directory
This is correct, the…

rmuller
- 12,062
- 4
- 64
- 92
0
votes
1 answer
Cannot access jakarta.ws.rs.core.Configurable
I'm getting an in-IDE error regarding the conf.register() call.
Cannot access jakarta.ws.rs.core.Configurable
I can't figure out how to fix it. I looked all over the internet and I think I have the right dependencies, so I'm not sure what might be…

Micu Bogdan
- 19
- 4
0
votes
0 answers
Spring Jersey took longer in RI_SUMMARY deserialize request payload
We've been using SpringBoot with Jersey framework and we realize some requests took longer SLA than expected. When we dive deep inside we found 99% of the API duration took at a step called "RI_SUMMARY", after doing some research we found it's…

Drex
- 3,346
- 9
- 33
- 58
0
votes
0 answers
Dependency injection of object initialised by specific value - CDI and Spring
I have a legacy application which uses Spring for bean management (AnnotationConfigWebApplicationContext) and CDI (inject, brought by jersey-spring dependency) for DI.
I have the following situation:
@Service
@RequestScoped
@Scope(value =…

Victoriia
- 105
- 9
0
votes
0 answers
Jersey: How can I disable logging for a specific resource /path
In my Spring Boot application, I have a RestServer class like:
@Component
public class RestServer extends ResourceConfig {
public RestServer() {
register(LoggingFeature.class);
register(ResourceWithLogging.class);
…

t777
- 3,099
- 8
- 35
- 53
0
votes
0 answers
How to unmarshall json to JAXBElement
I've generated java sources from wadl file through wadl2java maven plugin and wanted to create REST Services through Springboot jersey. It reaches the service but getting below Excetiption :
`Can not construct instance of javax.xml.bind.JAXBElement:…

lifeline2
- 69
- 1
- 15
0
votes
1 answer
Jersey 1 @Inject migrated to Jersey 2 stopped working
I am doing a Jersey 1 to Jersey 2 migration of my system.
In my code I had @Inject annotation from com.sun.jersey.spi.inject.Inject and @Singleton from com.sun.jersey.spi.resource.Singleton. I've changed these to javax.inject.Inject and…

Belphegor21
- 454
- 1
- 5
- 24
0
votes
1 answer
Spring Boot 2.5.4 + Jersey + JSF
I built a spring boot + project with rest jersey jax-rs and some GUI's with JSF.
It's working, but every time I start the project an error log is generated, I tried to look for what it would be but I couldn't.
Can someone help me remove this and…

Fernando Franzini
- 23
- 8
0
votes
1 answer
Using JAX-RS REST API as a library in a Spring Boot application
I'm working on a Spring Boot project for digital signature where I want to create some REST controllers using the classic Spring Web syntax (@RestController, @XMapping, etc.). Looking for some libraries to carry out the signature work I found this…

Jendoliver
- 51
- 6