Use this tag on issues regarding integrating jersey with spring (or vice versa)
Questions tagged [spring-jersey]
57 questions
0
votes
1 answer
json rootelement is showing ArrayList instead of @JsonRootName("TestClass") as root element in JSON response
I am working on maven SpringBoot microservice application where I expect json string with root element I which I have mentioned but it is giving me json string with ArrayList as rootelement.
There are so many similar questions reported but none of…

Prasad S Deshpande
- 1,362
- 4
- 15
- 35
0
votes
0 answers
java.lang.AssertionError: Status expected:<200> but was:<404> with jersy-spring
controller file[LogController.java file]:
@Api(value = "/")
@Path("/")
public class LogController
{
private Logger logger = LoggerFactory.getLogger(LogController.class);
private LoggerService loggerService = new LoggerService();
@GET
…

user3518405
- 45
- 2
- 10
0
votes
1 answer
Jersey No serializer found for SingleJust
I am trying to return a Single.just(..) from my endpoint.
I have created it using jersey and rx-jersey.
I keep getting this message on my browser:
No serializer found for class io.reactivex.internal.operators.single.SingleJust and no properties…

Amar Dev
- 1,360
- 2
- 18
- 38
0
votes
1 answer
Intercepting Request and Response in Spring + Jersey application
I have spring boot application which has both Jersey endpoints and Spring mvc endpoints. I would like to intercept request and response from a single point for both types of enpoint.
So far I know there is three option to do that. Those are-…

pijushcse
- 510
- 9
- 31
0
votes
2 answers
Jersey - resource variables null value despite non-null initialization
I have a resource in my Jersey REST api that has a private instance variable:
@Path("test")
public class TestResource implements ServletContextListener
{
private String someString;
@GET
public void test()
{
…

tenticon
- 2,639
- 4
- 32
- 76
0
votes
0 answers
Jersey (javax.ws.rs): how to do initialisation at page level ONLY not at application level
I need to do a lot of initialisation for few pages when they are called for only first time. Here is a decent post that addresses this: Initialize database on Jersey webapp startup
But the problem with the above approach is that the initialisation…

samshers
- 1
- 6
- 37
- 84
0
votes
1 answer
Configuring POJOMappingFeature without web.xml
I am using Jersey to marshall a Java object to JSON, as follows:
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import…

user1052610
- 4,440
- 13
- 50
- 101
0
votes
1 answer
Using JSR-330 annotations with Jersey 2 + Spring
I have been trying to use Spring 4 with Jersey 2 and notice that using the jersey-spring3 extension there is no way to make @Named annotated resources managed by Spring. They must be annotated with @Component to be managed by Spring.
If a resource…

calvinkrishy
- 3,798
- 8
- 30
- 45
0
votes
0 answers
Hibernate+Jersey, missing data in service response
Im tryin' to face some problem with one service, which should return user data + list of all recipies(assigned to user id), but the result that im getting is only user data, without recipies:
person_id: 3,
firstName: "Marek",
lastName:…

ColeS
- 35
- 1
- 2
- 7
0
votes
1 answer
Jersey/Spring/Grizzly Integration Tests Always Returns 500 - No Details
I am trying to write some integration tests for an application that uses Jersey with some Spring DI. Tests always come back as a 500 with no real explaination. Grizzly appears to start ok and boots up my hibernate connections just fine. Here is the…

user3170736
- 511
- 5
- 24
0
votes
1 answer
Download the file from database without saving it on server
I want to retrieve the pdf (Stored as BLOB) from Database using jersey api
I am using mybatis as data base framework .
I am able to download the pdf but the problem is i get the input stream as database to which i save it as file and then pass that…

Aman
- 226
- 1
- 4
- 17
0
votes
1 answer
Adding Jersey Configuration disables register view controller
i am using springboot 1.5.2 and i am using jersey and jsf
i have mapping for default view / as follows:
@Bean
public WebMvcConfigurerAdapter defaultView() {
return new WebMvcConfigurerAdapter() {
@Override
public…

Mahmoud Saleh
- 33,303
- 119
- 337
- 498