jersey Questions

8

Solved

I am new to Swagger. I am using Swagger UI to generate swagger documentation. I have two API calls. First call is to generate token based on user name and password. Second call needs token generat...
Fort asked 30/10, 2015 at 11:48

2

Solved

I'm creating a RESTful service for accessing data. So I started writing that service, first I created a ReadOnlyResource interface with the following code: public interface ReadOnlyResource<E,...
Suttle asked 3/4, 2017 at 7:21

1

I have a project and I use: Apache Maven 3.3.3 Project Jersey 1.17 Spring 3.3.1 Tomcat 6 Eclipse IDE I need to log requests and responses. To achieve it I added LoggingFilter to my web.xml: &l...
Truett asked 22/12, 2015 at 11:7

2

I am trying, using Jersey & Google Guice 3.0, to map 2 different URL patterns to the same servlet and each of these URL patterns to be applied to a different package in my project. To be clear...
Consultative asked 15/5, 2013 at 15:18

4

I am using jdk 1.9. I am trying to bring up a simple ReST service. Created the project using the maven archetype: jersey-quickstart-webapp. Then I went ahead and modified the pom.xml and web.xml. M...
Pharyngeal asked 15/10, 2017 at 0:11

5

Solved

I'm trying to get grizzly to use SSL encryption and still work fine with Jersey. I've looked all over the Internet, and I find all kinds of different attempts at SSL with Grizzly and Jersey. Seems ...
Mervinmerwin asked 13/1, 2014 at 17:56

5

Solved

I have a RESTful service that consumes and produces JSON objects, and I would like Jersey to use Gson instead of Jackson. How can this be done...?
Blayze asked 1/3, 2012 at 12:26

12

Solved

I am using Jersey based restful Service implementation strategy to build a service which will be used to upload files. My service class name is : UploadFileService.java (See Code below) package c...
Wallow asked 4/6, 2015 at 19:58

5

Solved

I am using swagger to display my RESTApi, one parameter of an API takes string as input and convert it to enum value. Is there any way to display a drop-down menu on the Swagger UI instead of havin...
Assyrian asked 25/6, 2014 at 1:3

5

Solved

How can I view the actual request that Jersey generates and sends to the server? I am having issues with a particular request and the fellow running the webserver asked to see the full request (wit...
Reality asked 28/7, 2011 at 14:29

4

Solved

There are errors when using DI in Jersey Rest application: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl(requiredType=Pric...
Millennium asked 27/4, 2016 at 12:13

3

Solved

We have tomcat with Jersey serving APIs behind NGINX. A new streaming API we have developed worked great when we call Tomcat directly, but started getting no response when calling it through NGINX....
Myers asked 23/3, 2018 at 14:20

14

I am facing issues while consuming JAX-RS services as JSON. Below I have added my code. This is my service class: //Sets the path to base URL + /hello @Path("/hello") @Consumes(MediaType.APPLIC...
Staford asked 5/10, 2014 at 21:9

1

I'm learning Java web technologies and I'm trying to deploy a trivial REST service using Jersey, when I try to access the resource I get greeted with the following error: SEVERE: Servlet.service() ...
Henning asked 7/3, 2022 at 0:56

4

I recently went through restful web services tutorial, but couldn't understand what a context is. Can someone explain what it it and also what @Context does?
Swiss asked 2/8, 2016 at 11:44

1

Solved

Im facing cannot access javax.ws.rs.ext.MessageBodyReader while upgrading to spring 6. Im using glassfish jersey 3.1.0 for REST services in spring 6 application and com.fasterxml.jackson.jaxrs.jack...
Macroclimate asked 25/1, 2023 at 12:16

16

Solved

I have a Jersey based Rest WS which outputs JSON. I am implementing a Jersey Client to invoke the WS and consume the JSON response. The client code I have is below WebResource r = restClient.reso...
Ronaldronalda asked 21/12, 2011 at 18:40

2

Solved

In our (legacy) codebase, we're throwing WebApplicationExceptions in different ways. In an attempt to make some order in how we're handling exceptions - I wanted to create an ExceptionMapper for th...
Wendling asked 2/4, 2015 at 13:20

12

So I'm building a web application, we are using JPA and Jersey to consume/produces JSON data. I have a custom "EntityException" aswell as a custom "EntityExceptionMapper" Here's...
Marlonmarlow asked 14/3, 2014 at 18:42

3

Solved

I am writing an API with Spring/Mongo/Jersey to do CRUD on a POJO that has a generic map of properties like this: public class Thing { private String id; @Indexed private Map<String,String&...
Archimedes asked 2/3, 2015 at 19:37

4

Solved

Im using Jersey Rest and want a Jersey filter to have access to some spring beans. however as I've discovered from other threads, Jersey does not obtain Spring beans if they are Java proxies as op...
Poisonous asked 22/3, 2013 at 10:30

7

Solved

I am trying to create a RESTful web-service and I created one but I am getting a MessageBodyWriter not found for media type=application/json error My Todo class: package com.jersey.jaxb; im...
Supersaturate asked 19/3, 2015 at 2:49

5

Solved

This is more of a general question about the difference between text/xml and application/xml. I am fairly new to writing webservices (REST - Jersey). I have been producing application/xml since it ...
Huskey asked 28/1, 2011 at 19:40

6

Solved

I have a REST API and when I make a POST and a GET nearly the same time I get this exception: SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java...
Footstalk asked 15/6, 2018 at 11:0

4

Solved

I want to test a Resourse with JerseyTest. I have created the following test: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:testApplicationContext.xml") publ...
Cohesive asked 1/7, 2014 at 11:59

© 2022 - 2024 — McMap. All rights reserved.