resteasy

unable to find a MessageBodyReader

烈酒焚心 提交于 2019-12-09 13:13:44
问题 I have this interface: @Path("inbox") public interface InboxQueryResourceTest { @POST @Path("{membershipExternalId}/query") @Consumes(MediaType.APPLICATION_XML) @Produces("multipart/mixed") public MultipartOutput query(@PathParam("membershipExternalId") final String membershipExternalId, @QueryParam("page") @DefaultValue("0") final int page, @QueryParam("pageSize") @DefaultValue("10") final int pageSize, @QueryParam("sortProperty") final List<String> sortPropertyList, @QueryParam(

JBOSS 7.1.0 error - Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher

雨燕双飞 提交于 2019-12-09 09:15:46
问题 I am trying to migrate my spring MVC based REST application to Jboss 7.1.0. At startup, the Jboss initialisation shows that everything was started up correctly with all war files deployed successfully. I had quite a few problems getting the integration between Spring MVN and Jboss's RestEasy service and im wondering if this is another conflict between jboss resteasy with Spring MVN. When i make a request to the REST service i get the following error: 12:52:31,541 INFO [org.springframework.web

Using web proxy with Java 8 JAX-RS RESTEasy clients

家住魔仙堡 提交于 2019-12-08 16:27:06
问题 I can't seem to get JAX-RS clients to use a web proxy on Java 8. I'm using RESTEasy 3.0.10.Final, and running from inside Eclipse 4.4.2 on Windows 7 Professional 64-bit. I set up a FreeProxy server on localhost running at 192.168.1.123:3128 . I turn logs on and telnet to 192.168.1.123 3128 and issue a manual GET . The request shows up in the logs. I then fire up my Java application, setting http.proxyHost=192.168.1.123 and http.proxyPort=3128 in the system properties. (I've even tried it

JBoss7 setting Cache-Control, Pragma to no-cache for all responses from RESTEasy

蓝咒 提交于 2019-12-08 15:13:26
问题 I'm trying to add Cache-Control headers to the responses generated in JBoss 7 using the RESTEasy framework. However, all the responses end up getting multiple Cache-Control headers due to JBoss adding a no-cache header by default. I can't find any setting to remove it and adding interceptors is also not working since a no-cache header is being added later. Can someone tell me how to disable the default pragma and cache-control headers in JBoss 7? Note: I'm using resteasy with Stateless EJBs.

scan resteasy resources by package name

喜欢而已 提交于 2019-12-08 11:22:52
问题 I'm configuring my resteasy app and need to turn of auto scanning (two jaxrs applications are in the classpath and it breaks at loading) For that reason I have configured my web.xml as follow: <context-param> <param-name>resteasy.scan</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>resteasy.resources</param-name> <param-value> io.swagger.jaxrs.listing.ApiListingResource, com.mycompany.resource.ClientResource, com.mycompany.resource.AccountResource, .

TOMEE + Spring + JAX-RS (NoSuchMethodError) jar conflict

喜你入骨 提交于 2019-12-08 10:48:45
问题 I am trying to run my application in TomEE server, After much hassles I am able to run the application. However for some reason I am getting some sort of jar conflict for resteasy and hence an error as below whenever a resteasy resource class is being called from application Jun 05, 2015 5:57:34 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [resteasy-servlet] in context with path [/MyApplicationName] threw exception [Servlet execution threw an

Resteasy Server-side Mock Framework

岁酱吖の 提交于 2019-12-08 10:44:21
问题 I am using Resteasy serverside mock framework to test my service. I dont want to test business logic but I would like test the data produced by the service. Using this approach I am able to create a simple test. However, in my RestEasy service I have a few dependency which I would like to mock. See the following example service which I would like test. The collaborator must be mocked so the service can be tested. @Path("v1") Class ExampleService { @inject private Collaborator collaborator;

Resteasy (or not Jersey - JAXRS implementation) on WebLogic12c, is possible?

孤人 提交于 2019-12-08 08:57:25
问题 I have a web application with a restful web service APIs. The application is now developed and works perfectly on Glassfish Server (3.1.x). As implementation of jax-rs the webapp use Rest-easy, because present features that are no present at Jersey. Now, it is necessary to deploy the Web application in WebLogic 12c, specifically in weblogic 12.1.2. But it seemed impossible to do so. Weblogic uses Jersey for restful services and gives conflict if it is to use a different implementation jax-rs.

Getting a zip file with a java rest client (restEasy)

混江龙づ霸主 提交于 2019-12-08 08:32:40
问题 everyone. I started to use the restEasy (jboss) java rest client and met a problem I cannot seem to solve. So far, I could use it to bring back json from the rest server (string form). One of the rest service I need brings back a zip file, however. And I stumbled on a problem. Here is the code : ClientRequest req = new ClientRequest("rest service url"); //the url is good ClientResponse<String> res = null; res = req.get(String.class); ZipInputStream zip = new ZipInputStream(new

Could not find JAXBContextFinder for media type: application/json

╄→гoц情女王★ 提交于 2019-12-08 08:00:07
问题 I have a problem with development resteay+ejb+json. Using Jboss-5.1.0.GA. I get example from resteasy-jaxrs and adapted to use for my case. Added jars(this ask me jboss. in other case catch exception - class not found) into \jboss-5.1.0.GA\server\default\lib\ resteasy-jaxb-provider-1.2.1.GA jaxrs-api-2.0.1.GA resteasy-jaxrs-2.0.1.GA Get exception 09:43:15,502 ERROR [SynchronousDispatcher:error] Failed executing GET /basic org.jboss.resteasy.plugins.providers.jaxb.JAXBMarshalException: Could