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
1
vote
3 answers

Is there a way to change the output type for restful webservices by a parameter in java?

I wanna use the same restful webservice path to produce xml or json, or a xml with xsl header. Is it possible using any framework(jersey or resteasy) in java? Eg: @Path("/person") public class PersonService { @GET @Path("/find") public…
AlanNLohse
  • 43
  • 1
  • 6
1
vote
1 answer

Resteasy JAX-RS in Jboss AS 7.1.1 not working

I'm trying to deploy a simple web application under Jboss AS 7.1.1 which exposes JAX-RS services, using Resteasy. According to Resteasy docs (I've updated resteasy to 3.0 beta 2), there's no need to put anything in web.xml, so I created an empty web…
loscuropresagio
  • 1,922
  • 15
  • 26
1
vote
1 answer

How to implement bson producer/consumer for resteasy

We're developing a service that uses the resteasy framework. It works fine with XML and json application/content-types. However, we need to use one more format: bson. I installed the bson4jackson plugin, but I can't figure out how I should use it…
1
vote
1 answer

Use Conversation Scoped Beans in REST service

I'm running a CDI based application on JBoss AS 7.1.1 which uses Conversation Scoped Beans. I need to invoke one of these beans from a RESTeasy Service. Unfortunately when I invoke the Conversation Scoped Bean @Inject private ConversationBean…
Max Korn
  • 275
  • 7
  • 18
1
vote
1 answer

RestEasy, JBoss Seam enigmatic exception

I'm using RestEasy within a JBoss Seam application and I am getting a weird exception which is not very informative. I have the following jars in my Seam 2.2.2.GA…
niiamon
  • 141
  • 2
  • 6
1
vote
1 answer

AWS elastic beanstalk cannot return custom response code using resteasy?

I'm working on a web service using RESTEASY to set the response status code when get some exception. First I tried resteasy exception mapper which works fine locally. The mapper code attached below. However, when I upload that WS into elastic…
1
vote
1 answer

Resteasy not working with @ApplicationPath

I am not being able to get JAX-RS working with Resteasy 2.3.5 usingh simple @ApplicationPath annotation. Here is the code I am using: @ApplicationPath("/rest") public class MyApplication extends Application { @Override public Set>…
Quin
  • 366
  • 4
  • 9
1
vote
1 answer

RestKit/RestEASY -- ClientAbortException when enqueuing request operations

I am working on an iOS application that will use RestKit 0.20 to make REST-based calls to a service that is running on JBoss AS 7.1.1 and using restEASY as its REST-based web service framework. The REST service that the client app will be calling is…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
1
vote
2 answers

Embedded web server with Rest API's and RESTEasy

I want to create a standalone desktop application with embedded web server. This is my first time writing application like this. I did some research and decided to use JETTY for embedded web server. I found some good tutorials and I have got it…
sublime
  • 4,013
  • 9
  • 53
  • 92
1
vote
1 answer

Upgrading RESTEasy 2.0.1.GA to 2.3.0.GA org.jboss.resteasy.plugins.spring.SpringContextLoaderListener Exception

I'm attempted to update my web application that uses REASTEasy 2.0.1.GA to 2.3.0.GA or later. I run into issues with the loading of the org.jboss.resteasy.plugins.spring.SpringContextLoaderListener I'm guessing that failure doesn't load my spring…
c12
  • 9,557
  • 48
  • 157
  • 253
1
vote
0 answers

Jboss AS 7 and class loading

I am using JBOSS AS 7.0.2 Final, and was trying to upgrade the version of RESTEASY that comes with 7.0.2 RESTEASY 2.2.1.GA to a newer version such as 2.3.4.Final. I followed the directions as indicated in patching provided by JBOSS, and when I…
mingsterr
  • 29
  • 4
1
vote
1 answer

OAuth ServletException with RestEasy

code on: JBoss 7.1.1.Final, JEE6, JSF2, using resteasy oauth: on web.xml: oauth.provider.provider-class com.ostudio.dbo.rest.OAuthMyProvider
user1852036
1
vote
1 answer

How to force RESTEasy output number as string in json?

I want to put a quote "" in the following json from RESTEasy (with Jackson). { "isReachable": false, "timestamp": 1353449973347 } { "isReachable": "false", "timestamp": "1353449973347" } The reason why I do that is because I am…
janetsmith
  • 8,562
  • 11
  • 58
  • 76
1
vote
1 answer

Xml Tag not opening when there is no data

I am writting a resteasy webservice to produce data in XML format. The XML output works fine when there is data. The real problem comes when there is no data. It stops with parent tag. if there is no data it looks like this I am looking…
Vishwa
  • 117
  • 1
  • 2
  • 12
1
vote
1 answer

RestEasy Service Returning Different response for Browser Request and Java Client Request

I have written a resteasy-spring service : @Controller @RequestMapping("/abr/asd") @Path("/ab/ac") public class JobSchedulerService { private static final Logger LOGGER = Logger.getLogger(JobSchedulerService.class); …