jax-rs Questions
2
I am trying to work out a sample of JAX-RS in JBoss 7.2 Rest Easy. I am getting a Error message as below.
SEVERE [org.jboss.resteasy.core.SynchronousDispatcher]
(http-/0.0.0.0:80-2) Failed exe...
Dunant asked 24/10, 2013 at 2:49
5
Solved
I am working through examples in Restful Java with JAX-RS by Bill Burke. I'm using intellij and created a Maven project to make a "Hello World" web service. I understand that JAX-RS is a ...
1
I am trying to create a web app that complies with the Jakarta RESTful Web Services (formerly JAX-RS) specification, running on a WildFly server.
I can start a deployment and access the WildFly hom...
Chur asked 12/2, 2024 at 13:15
3
Solved
I'm not a Jersey guru but I read that Jersey cannot resolve Java methods based on query params, but it looks sometimes it does, here is my example.
This is the server code:
@GET
@Path("/servic...
Armory asked 28/6, 2012 at 10:48
2
Solved
(specifically RESTeasy)
It would be nice (for a single file) to have a method signature like:
public void upload(@FormParam("name") ..., @FormParam("file") file: InputStream)
...
doable? or ...
2
Solved
I have a JAX-RS REST-Service that produces a CSV file and streams it back to the browser. Everything is set to UTF-8, so also the file I download via the browser is a valid UTF-8 File (without a BO...
Gel asked 10/3, 2017 at 10:22
2
Solved
I am asking this question after a couple of days on research and finding no definitive answer to this question: How do I process multipart form-data requests (clean and nice) with JAX-RS (not servl...
Aymara asked 26/7, 2022 at 18:49
4
Solved
I have a RESTEasy web server with lot of methods. I want implement logback to track all requests and responses, but I don't want add log.info() to every methods.
Maybe there's way to catch reques...
2
Solved
I'm trying to implement Swagger on a Java application that has two Application classes due to the fact that one deals with "public" web services and the other deals with "admin" web services. I'm t...
Foolery asked 31/10, 2016 at 20:38
8
I know this may sound like a duplicate of this or some others, but bear with me.
I have a very basic JAX-RS resource, have added all the required annotations that I saw in this tutorial I followed ...
2
I'm trying to understand if this is a feature or a bug... :-)
For the below controller and exception mapper, for a rest client that will fail with a 401 response, I would expect the exception hand...
Amathiste asked 12/9, 2019 at 15:55
3
I am using swagger-jersey2-jaxrs version 1.5.15. I am on swagger-ui 3.0.9. I added a description to a header using @SwaggerDefinition annotation and tags (as the description parameter is now deprec...
6
Solved
I am writing a Java Rest Web Service and need the caller's IP Address. I thought I saw this in the cookie once but now I don't see it. Is there a consistent place to get this information?
I saw on...
Domett asked 29/9, 2010 at 19:23
17
I have created an app implementing REST services locally using:
Eclipse Indigo
Jersey 2.4
Tomcat 7.0.47
When running locally using Eclipse, the services work OK, but when deploying my WAR file, I...
Fiorin asked 18/12, 2013 at 23:3
8
Solved
I am struggling with a REST application with Grizzly, Jersey and Jackson, because Jersey ignores my custom ObjectMapper.
POM dependencies:
<dependencies>
<dependency>
<groupId>...
Stuyvesant asked 18/9, 2013 at 12:58
9
Solved
I try to start application but using Tomcat 7 and I've got an exception like this.
I think this can be something with Maven dependency, but I'm sure. If some know what is going on please for answe...
Attend asked 24/4, 2014 at 18:53
5
Solved
I'd like to use Joda's DateTime for query parameters in Jersey, but this isn't supported by Jersey out-of-the-box. I'm assuming that implementing an InjectableProvider is the proper way to add Date...
6
I'm developing a java script client application, in server-side I need to handle CORS, all the services I had written in JAX-RS with JERSEY.
My code:
@CrossOriginResourceSharing(allowAllOrigins = ...
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
7
Solved
Having some sort of proxy between a mobile app and a web-service, we are puzzled by the response when issuing a post request. We receive response with status 200: OK. But we can not find/extract th...
Metrology asked 6/8, 2013 at 17:24
14
Solved
I'm trying to POST a List of custom objects.
My JSON in request body is this:
{
"collection": [
{
"name": "Test order1",
"detail": "ahk ks"
},
{
"name": "Test order2",
"detail": "Fisteku"...
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
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...
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...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.