jersey Questions
4
Solved
I have worked in Jersey and RESTEasy framework earlier and now we will be using Spring Rest for a new project , I don't want to pass all the query params and matrix params as parameters in the meth...
Flatways asked 9/1, 2016 at 5:40
11
Solved
I have a Dropwizard based Jersey REST service running on the default ports 8080(service) and 8081(admin), I need to change the default ports to something that is less commonly used, I am not able t...
Shiny asked 17/11, 2013 at 7:43
5
Solved
I'm new to log4j and am trying to use it to better understand why my resource is providing a 415 Media Type Not Supported header.
I'm using the following:
log4j.rootCategory=WARN, stdout
log4j.a...
3
I'm trying to retrieve the body of a request in a JAX-RS ExceptionMapper. Here is my code so far:
@Provider @Componenet
public class BaseExceptionMapper implements ExceptionMapper<Exception>...
2
I use SpringBoot and Jersey into my project and I often tackle the following error :
[ERROR - ServerRuntime$Responder - 2018-02-13 13:16:45,983] An I/O error has occurred while writing a response ...
7
Solved
I am using jersey for my project and tring to parse a URI from a string.
UriBuilder.fromUri("http://localhost:8000").build();
The code is simple, but I get a error below
java.lang.ClassNotFound...
4
I have an endless InputStream with some data, which I want to return in response to a GET HTTP request. I want my web/API client to read from it endlessly. How can I do it with JAX-RS? I'm trying t...
2
Solved
I am using jersey as my restful api implementation. In the front end, I am using angularjs $http service to make http request. When I request a delete method I always got below error.
"Method DELE...
4
According to the documentation,
"Clients are heavy-weight objects that manage the client-side
communication infrastructure. Initialization as well as disposal of a
Client instance may be a ra...
Bachman asked 13/10, 2015 at 8:0
4
Solved
I am trying to achieve the following.
Read a custom header and its value from Request:
name: username
Now, on response, I would like to return the same header name:value pair in HTTP response.
...
10
Solved
I have been getting a ClassNotFoundException with org.glassfish.jersey.servlet.ServletContainer but it peculiarly started last night when I tried to start/re-start my Tomcat server (v7) with Eclips...
Kass asked 25/2, 2014 at 17:47
3
Solved
I've run into a strange issue with unit testing the following jersey client call:
WebResource webResource = _client.resource(url);
ClientResponse response = webResource
.accept("application/json"...
4
Solved
In one of my projects I've already upgraded Jersey from version 2.14 to 2.23. But I'm struggling many hours with one problem. My project defines its own ExceptionMapper for a ValidationException, b...
Mauriciomaurie asked 31/7, 2016 at 8:5
7
Solved
I've been Googling my butt off trying to find out how to do this: I have a Jersey REST service. The request that invokes the REST service contains a JSON object. My question is, from the Jersey POS...
3
For my REST api I'm using jersey and ExceptionMapper to catch global exceptions.
It works well all the exception my app throws but I'm unable to catch exception thrown by jackson.
For example one ...
Cheyney asked 5/1, 2016 at 15:24
2
Solved
None or multiple beans found in Spring context for type class ...myPackageHere..., skipping the type
My Jersey Java classes looks like this:
@Component
...class...MyComponent...extends myParent
And in the parent class:
...abstract class myParent...
@Autowired
SomeBean myAutowiredBean
I ge...
2
Jersey normally uses HK2 dependency injection, but I would like to use Jersey with Dagger 2. Both Dagger and HK2 implement JSR 330, which I have taken as evidence that this should be possible witho...
Eustache asked 11/3, 2018 at 14:27
3
I'm beginning with jersey and trying to get freemarker working with it using TDD. I want to make a ViewProcessor for my templates, but fail to inject the servlet context in the class.
Here is the c...
Numberless asked 2/12, 2010 at 12:16
3
Solved
I've been trying to debug this issue for a bit now, and searching SO and other websites I haven't been able to find a solution. I've checked all versions of the dependencies in my pom.xml and made ...
2
Solved
I have an app built with Jersey.I need to do some initialization on startup of the webapp/war in the Tomcat 7 container by running an application specific login/code.
What is the best way to do th...
Barrada asked 15/9, 2011 at 0:8
5
Solved
I'm creating integration tests for a JAX-RS/Jersey Webservice deployed on Tomcat 8 using arquillian.
I am trying to do a POST request like that:
E dummy = dummyFactory.manufacturePojo(getSubClass...
Mcneill asked 9/3, 2015 at 21:1
7
Solved
Here is a sample Resource class:
@Path("/resource")
public class SomeResource {
@GET
@Produces({MediaType.APPLICATION_XML})
public String someMethod(@QueryParam("param1") String param1, ......
Addams asked 31/7, 2013 at 14:32
2
Solved
I wrote a simple class to test response reading entity method (if it works as I expect). But it didn't worked well.
When I launch my class I get following error at response.readEntity():
Except...
Tobolsk asked 29/4, 2016 at 19:32
3
Solved
I need help with multiple file uploads using Jersey. I used the following code to upload a single file using Jersey.
package my.first.rest;
import java.io.File;
import java.io.FileOutputStream;
i...
Oud asked 9/9, 2014 at 16:15
2
Solved
I'm using Jersey to create REST API. I have one POST method and as a response from that method, the user should be redirected to a custom URL like http://example.com that doesn't have to be related...
© 2022 - 2024 — McMap. All rights reserved.