Questions tagged [resteasy]

A JBoss project that provides various frameworks to help build RESTful web services and Java applications

RESTEasy is a fully certified and portable implementation of the JAX-RS specification.

JAX-RS is a new JCP specification that provides a Java API for RESTful Web Services over the HTTP protocol.

Full details are available at the JBoss RESTEasy site.

2470 questions
19
votes
6 answers

List all exposed/available endpoints of RestEasy service?

Is it possible to list all exposed/available endpoints of RestEasy service in a simple way?
fugbixed
  • 353
  • 1
  • 2
  • 8
18
votes
4 answers

REST using JAX RS or Spring MVC

I'm trying to build a REST web service (server side) that will allow a partner system to connect/POST order information in JSON format. Should I use JAX RS (for example from JBOSS RESTEasy) or Spring MVC to build such a service? They both seem…
java_pill
  • 843
  • 3
  • 13
  • 23
18
votes
3 answers

RESTeasy and Returning to a JSP page with a model

Is there an easy, not using spring, way to have RESTeasy return a jsp or html page with a model? I want to do something similar to the spring ModelAndView where I have a request to say /contacts/loomer and have it return a mocked up object in a jsp…
Loomer
  • 569
  • 2
  • 6
  • 15
18
votes
8 answers

RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type class org.keycloak.representations.AccessTokenResponse

I'm trying to test Keycloak REST API. Instaled the version 2.1.0.Final. I can access the admin through browser with SSL without problems. I'm using the code above: Keycloak keycloakClient =…
18
votes
1 answer

keycloak error : Unrecognized field "access_token"

I'm using keycloak to secure my rest API, I followed this tutorial to PROGRAMMATICALLY ADDING USERS, but I get that error message: ERROR [io.undertow.request] (default task-9) UT005023: Exception handling request to /service/secured:…
aName
  • 2,751
  • 3
  • 32
  • 61
18
votes
1 answer

Problems Resteasy 3.09 CorsFilter

I tried to use the new CorsFilter which is available in Resteasy 3.0.9. I found an example at the bottom of this page: Ajax request with JAX-RS/RESTEasy implementing CORS If I define this filter in the method getSingletons() (of the Application…
faenschi
  • 271
  • 1
  • 3
  • 11
18
votes
3 answers

RESTEasy Client + NoSuchMethodError

I am trying to write simple RESTEasy client. Below given is sample code: Client client = ClientBuilder.newBuilder().build(); WebTarget target = client.target("http://localhost:8080/context/path"); Response response =…
user613114
  • 2,731
  • 11
  • 47
  • 73
17
votes
2 answers

RESTEasy - @Path requiring a full path?

I was messing around with JAX-RS and made an application which calls REST services which produce JSON. I tried Jersey and everything went fine, but I had to switch to RESTEasy as my application needs to be built with JDK5. I changed my web.xml to…
Bastien Jansen
  • 8,756
  • 2
  • 35
  • 53
16
votes
4 answers

Keycloak/OIDC : retrieve user groups attributes

I've extracted a user's groups information from the OIDC endpoint of Keycloak, but they don't come with the group ATTRIBUTES I defined (see Attributes tab into the group form, near Settings). Is there a claim to add to my request? I'm using a…
Thomas Escolan
  • 1,298
  • 1
  • 10
  • 28
16
votes
1 answer

NoSuchMethodError when using RESTEasyClient on Android

I am developing an Android app and using a library that in turn depends on RESTEasyClient. When using the library at runtime, I get a NoSuchMethodError: java.lang.NoSuchMethodError: No direct method…
O.O.Balance
  • 2,930
  • 5
  • 23
  • 35
15
votes
1 answer

Root element name in collections returned by RESTEasy

I'm using JAX-RS via RestEasy in JBoss AS 6. When my JAX-RS resource returns a collection of items (e.g. via a List), RESTEasy always uses the name collection as the root element. E.g.
Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
15
votes
4 answers

What is the equivalent of @Context UriInfo in Spring Rest

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 method , and usually I would annotate the method with…
Vignesh
  • 521
  • 2
  • 6
  • 10
15
votes
2 answers

RESTEasy Client Exception Handling

I have a simple client using RESTEasy as follows: public class Test { public static void main(String[] args) { ResteasyClient client = new ResteasyClientBuilder().build(); ResteasyWebTarget target =…
gogators
  • 783
  • 2
  • 6
  • 17
15
votes
4 answers

@MultipartForm How to get the original file name?

I am using jboss's rest-easy multipart provider for importing a file. I read here http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Content_Marshalling_Providers.html#multipartform_annotation regarding @MultipartForm because I can exactly…
Krishna Chaitanya
  • 2,533
  • 4
  • 40
  • 74
15
votes
2 answers

RestEasy client framework file upload

Does anyone know how to create the RestEasy client side calls to upload a file using the following two interface signatures? I'm not finding any information at all. I know how to do it using the HttpClient but I'd like to use the client proxy to…
Fredrik L
  • 1,790
  • 4
  • 21
  • 28