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...
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...
5
Solved
5
Solved
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...
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...
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...
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() ...
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...
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...
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...
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...
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...
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...
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 ...
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...
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.