jersey Questions
2
Solved
REQUEST :
URL: http://localhost:8080/RESTfulExample/rest/file/upload
METHOD : POST
HEADER: Content-Type : multipart/form-data
RESPONSE :
HTTP Status 400 - Bad Request
The same code is working ...
4
Solved
I had implemented streaming output in my Jersey Resource class.
@GET
@Path("xxxxx")
@Produces(BulkConstants.TEXT_XML_MEDIA_TYPE})
public Response getFile() {
FeedReturnStreamingOutput sout = ne...
Douma asked 14/4, 2015 at 20:50
13
Solved
4
Solved
I am currently developing REST services and throwing BadRequestException for all of the following,
1. Path parameter is invalid
2. Query parameter is invalid
4. Input request object has missing at...
3
Solved
I would like to catch json mapping exception in my restful service in case input json is not valid.
It throws org.codehaus.jackson.map.JsonMappingException, but I don't how to or where to catch t...
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
4
I'm using jersey's HttpServerFactory to create a simple embedded HttpServer that hosts a couple of rest services. We just needed something small quick and lightweight. I need to host a small static...
Szymanski asked 9/4, 2013 at 13:1
7
Solved
I am using Jersey 2.10 with Jackson serialization/deserialization feature in my REST API.
My idea is to make my REST API to always return a standard JSON error response. For that I have Exception...
5
Solved
I'm trying to deploy my application, using web.xml, servlet 3.0, and jersey API. Unfortunately, it doesn't work.
This is MyApplication.class :
package com.example;
public class MyApplication ext...
Glorious asked 3/9, 2013 at 14:36
10
I'm building a very simple REST API using Jersey, and I've got a warning in my log files that I'm not sure about.
WARNING: A servlet POST request, to
the URI
http://myserver/mycontext/myapi/us...
19
Solved
I am trying to build a simple hello world application for two days using Jersey + Google app engine. For simple AppEngine project I followed these tutorials and both works just fine
https://develop...
Demagnetize asked 6/8, 2013 at 17:2
6
Solved
I am trying to create a very simple REST service using Jersey. Here is the service code
@Path("/UserService")
public class UserService {
@GET
@Path("/users")
@Produces(MediaType.APPLICATION_XM...
3
This my pom.xml and the errors I get are:
Non-resolvable import POM: Could not transfer artifact org.glassfish.jersey:jersey-bom:pom:2.9 from/to central (http://repo.maven.apache.org/maven2): re...
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 ...
4
Solved
I am trying to go from XSD->POJO->JSON for use with UPS tracking API which is case sensitive. I'm using Jackson 2.6.7 In the generated JSON. I am seeing camel case names when I should see below:
...
3
Solved
i have a java web application, using Spring, Jersey (jax-rs) and Hibernate.
It runs fine and fast, but there are some days it takes a big amount of time to initialize in debug mode only and when i...
4
I have spring boot application integrated with jersey framework.
Now when I try to run that application it just stucks at Spring boot logo and nothing happens after that.
I tried adding -X also , ...
Dew asked 23/11, 2016 at 10:57
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...
3
Solved
I'm looking to run an exploded spring-boot jar.
Currently I'm doing
jar xf app.jar
java -cp /lib/*:/ com/domain/module/Main
which seems to begin the app startup, but invariably stops on
[rest...
Peony asked 24/2, 2016 at 2:38
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
1
I've managed to port Jersey to Android (jersey-android)
Jersey requires certain configuration files to be present within the folder META-INF/services .
So far I'm manually copying the services fol...
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 = ...
3
Solved
I'm using Jersey 1.19.1 on a Web project with Java+Jboss.
Everytime I request something from the Webservice, it shows this entry on the server.log:
ERROR [STDERR] com.sun.jersey.server.wadl.gener...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.