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
0
votes
1 answer

Combine Resteasy async fail to inject SessionScoped and RequestScoped bean with CDI

I am working on a issue related to async job in Reasteasy (http://docs.jboss.org/resteasy/docs/2.3.1.GA/userguide/html_single/index.html#async_job_service). I post a request adding ?asynch=true to the url, and the job is then run asynchronously, but…
Nicocube
  • 2,962
  • 2
  • 20
  • 28
0
votes
2 answers

Faild to read artifact descriptor error while adding resteasy-jaxb-provider

I am learing REST throught java using JBoss RestEasy. To use JAXB api implementation I given the following dependency in pom.xml, {I am using maven project in eclipse} org.jboss.resteasy
droidsites
  • 1,035
  • 4
  • 16
  • 29
0
votes
1 answer

Producing application/zip content using RESTeasy

This quesiton refers to the RESTeasy framework by jboss. I'm using the client framework to call a third-party REST webservice. I was wondering if the RESTeasy framework has support to produce application/zip contents. I've read the documentation,…
Jean-Michel Garcia
  • 2,359
  • 2
  • 23
  • 44
0
votes
1 answer

Config RestEasy service using Spring

I have recently wrote a very simple Restful service deployed to JBoss AS 7. I have a JAX-RS interface defiled as (using scala): @Provider @Path("/customers") trait ICustomerService { @GET @Path("/{id}") @Produces(Array("application/xml")) …
Kevin
  • 5,972
  • 17
  • 63
  • 87
0
votes
1 answer

How to connect to Neo4j before each request on Resteasy?

1) I'm using Resteasy to provide a RESTful Web service which gives access to a specific Neo4j graph database. With Resteasy, this Web resource (GraphResource.java) looks like: @Path("graph") public class GraphResource { @GET …
Marc de Verdelhan
  • 2,501
  • 3
  • 21
  • 40
0
votes
1 answer

RESTful service deployed on JBoss does not respond

I have a problem testing a simple Restful service on JBoss. I have built the project and deployed to JBoss fine. This is my Deployer written using Java: import javax.ws.rs.core.Application; public class Deployer extends Application { } This is my…
Kevin
  • 5,972
  • 17
  • 63
  • 87
0
votes
2 answers

generate javascript for resteasy

Hi there I'm using resteasy as my JAX-RS implementation for a project and was wondering how to generate the ajax client from my REST resources. I found this link but it just documents the ajax client and its usage. No where can I find how to…
n4rzul
  • 4,059
  • 7
  • 45
  • 64
0
votes
1 answer

Scanning rest resources in application with existing servlets

I am having an application which is having both Rest resources and custom servlets, with the configuration given below. Following it, rest resources are reachable, but the servlet is not reachable.
Love Hasija
  • 2,528
  • 2
  • 27
  • 26
0
votes
2 answers

RESTEasy client API

Spring has a very good client API for REST Client: RestTemplate. Effectively it is like a Facade which encapsulates some bootstrap code (in the same way as JmsTemplate and JdbcTemplate). Is there an equivalent in JBoss's RestEasy? Thanks.
dublintech
  • 16,815
  • 29
  • 84
  • 115
0
votes
1 answer

Arbitrary name for RESTEasy QueryParam?

Is there a way to get any query parameter without explicitly declaring its name using the @QueryParam annotation? I have a string which may have tokens like {animal}, which are then replaced by the query parameter posted, e.g. ?animal=fox, but I…
Zoltán
  • 21,321
  • 14
  • 93
  • 134
0
votes
1 answer

RestEasy Jettison Single Element Array bug

Issue details: RestEasy + Jettison When array has two elements the format is : {"MyArray" : {"Array" : [{"a" : 1, "b" : 2}, {"a" : 3, "b" : 4}]}} but when the array has single element, the format is : {"MyArray" : {"Array" : {"a" : 1, "b" : 2}}}…
0
votes
1 answer

@PartType cannot be resolved

I don't know what library I should include to be able to use @PartType("application/json") annotation when outputing multipart/mixed data with resteasy.
myro
  • 1,158
  • 2
  • 25
  • 44
0
votes
2 answers

Is there a good BrowserCache implementation for RESTEasy? (better than LightweightBrowserCache)

We're using the LightweightBrowserCache provided by RESTEasy 2.2.3.GA but have noticed that when the cache size limit is reached, the cache is cleared completely. Obviously this severely reduces the chance of cache hits, because there's no way that…
joelittlejohn
  • 11,665
  • 2
  • 41
  • 54
0
votes
1 answer

Resteasy - import javax.ws.rs.Consumes cannot be resolved

Hi I am working with a rest api using Resteasy, simple printMessage samples work however I am getting error with this code: @Consumes("application/json") Error: import javax.ws.rs.Consumes cannot be resolved I have included all jar in the lib…
quarks
  • 33,478
  • 73
  • 290
  • 513
0
votes
2 answers

What is the proper use of EntityManager from a RESTEasy service? (SEAM, JBoss)

My project is a WAR project generated with seam-gen. It contains a RESTEasy web service class like this (simplified, only the relevant parts): @Scope(ScopeType.APPLICATION) public abstract class RestService { @In protected EntityManager…
Istvan
  • 17
  • 1
  • 5
1 2 3
99
100