Questions tagged as 'jersey'

1
answer

Using Gson instead of Jackson on web service that makes use of Jersey

I found that Jersey by default makes use of the Jackson framework for resources to return data in Json format. However, I had the need to use the Gson framework to convert the objects to Json. How to do this if Jersey uses Jackson implicitly?...
asked by 11.05.2017 / 16:06
1
answer

Put WS in heroku

Does anyone know how to configure persistence.xml to access a Heroku database? I am trying with the credentials they pass but it gives password error to that user. Can anyone help me with this? Q: My app is a Ws made with Jersey. Hug....
asked by 17.01.2017 / 13:18
1
answer

Error consuming Glassfish + Jersey REST web service with date that returns an xml

I need to consume a web service (WS) REST in my android application. The web service was made with glassfish, jersey and ORM hibernate to communicate with the database. Here is the WS code: Vegetarian Service: @Path("/vegetariano") public c...
asked by 09.11.2016 / 00:54
0
answers

Problem with hibernete and JPA

It is a WS REST, it should return a donor, but it is giving an exception ... Console: set 22, 2016 3:37:15 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {5.0.1.Final} set 22, 2016 3:37:15 PM org.hibernate.cfg.Environm...
asked by 22.09.2016 / 21:11
1
answer

Jersey2 is different from jersey v2.x?

I'm trying to implement Swagger in Jersey and there is implementation for both Jerseys. Want to know if Jersey2 is different from Jersey v2.x? or it's the same thing.     
asked by 14.09.2016 / 17:17
1
answer

WebService Rest

I'm wondering how do I send a post in the format json using form . This is the form I use: <form action="rest/carros" enctype='application/json' accept-charset="utf-8" method="post"> <input name...
asked by 16.01.2016 / 20:03
0
answers

[jersey-servlet]: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes

I'm trying to upload application in WAS 8.5, however I'm taking this error when deploying, and with that the application does not run. WEB.XML <servlet> <servlet-name>jersey-servlet</servlet-name> <servlet-cla...
asked by 28.10.2015 / 12:42
0
answers

Upload image + parameters HttpURLConnection

I have a Rest server and need to upload images and also send parameters. I've done a lot of research but I still can not make the client work. By the browser works right, via code I can send the image but the parameter does not. Follow the serve...
asked by 13.05.2015 / 22:58
0
answers

WebService Restful Jersey

I'm starting development of WebService Restful Jersey in Java and I'm not able to connect to perform a simple Hello World. I added the jar: asm-3.1jar jersey-core-1.19jar jersey-server-1.19jar jersey-servlet-1.19jar jrr311-api.1.1...
asked by 01.05.2015 / 20:33
0
answers

Obtaining HTTP Error 500 Internal Server Error Using Jersey

I'm studying REST . I'm using jersey to create a RESTful services. I encountered a problem when trying to create a service that would return a json object. I'm using a client (java) to make the request to the service....
asked by 05.05.2015 / 21:45