Re: [Resteasy-users] "Provider class ____ is already registered. 2nd registration is being ignored."

2016-06-09 Thread John D. Ament
I see this on the client side in 3.0.14, even though no provider is registered. John On Thu, Jun 9, 2016 at 3:46 PM Sean Dawson wrote: > > We're seeing this as well. > > > On Thu, Jun 9, 2016 at 3:16 PM, Systema Sephiroticum < > fallen.tab...@gmail.com> wrote: > >> I'm seeing this warning quite

[Resteasy-users] Anyone merging PRs?

2015-11-07 Thread John D. Ament
All, I've noticed that no PRs have been merged in a while. Any plans to accept outside contributions? John -- ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.n

Re: [Resteasy-users] Status 404 - Could not find resource

2015-11-04 Thread John D. Ament
HI Dave, You have a context param which is disabling scanning resteasy.resources zedi.pacbridge.web.services.OutgoingRequests, zedi.pacbridge.web.services.Connections Please add your class here, or stop using the context param. On W

[Resteasy-users] YAML Provider

2015-08-20 Thread John D. Ament
Hi all, I was playing with the YAML provider today and saw an issue. In the local unit tests, everything runs fine. However when you deploy the equivalent example to the app server it was failing. I believe its a class loader issue, since they seem to use some basic class loading support to do

Re: [Resteasy-users] RESTEasy Runtime client propagation.

2015-02-27 Thread John D. Ament
Hi Jakub! I think you're looking for ContainerResponseFilter. John On Fri, Feb 27, 2015 at 8:03 AM Jakub Narloch wrote: > So, > > After a quick research I am trying to find the counterpart > of ClientErrorInterceptor for RESTEasy 3.x, any sugestions? > > Regards, > Jakub Narloch > > 2015-02-27

Re: [Resteasy-users] SE Clients and providers

2015-01-26 Thread John D. Ament
at 12:37:22 PM John D. Ament wrote: > Hi, > > I'm using a simple SE client w/ RestEasy to talk to multiple systems. > > One system exposes its APIs using Jackson1 annotations and the other uses > Jackson2 annotations. > > I create two distinct clients for each of the

[Resteasy-users] SE Clients and providers

2015-01-26 Thread John D. Ament
Hi, I'm using a simple SE client w/ RestEasy to talk to multiple systems. One system exposes its APIs using Jackson1 annotations and the other uses Jackson2 annotations. I create two distinct clients for each of them, one registering the jackson provider and the other registering the jackson2 pr

Re: [Resteasy-users] media type and versioning

2014-07-15 Thread John D. Ament
Tom, Is your MessageBodyReader/Writer annotated with @Produces/@Consumes? If so, then it should only be triggered for those types. John On Tue, Jul 15, 2014 at 12:31 PM, Tom Butt wrote: > I currently have a resource that consumes "application/xml", but I'm > moving to custom media types for v

[Resteasy-users] Wrong build order?

2014-04-07 Thread John D. Ament
Hi Just noticed that in master right now, the code can't compile. There's a new resteasy-hibernatevalidator-provider module that depends on the resteasy-cdi module, however the resteasy-cdi module doesn't come until much later in the build. Likewise, Resteasy CDI doesn't compile because of: [E

Re: [Resteasy-users] RestEasy 3.0.7 and Netty 4

2014-04-01 Thread John D. Ament
Hmmm, so this is your output right? the data length you're describing is in bytes as well, right? I know I previously had this working in 3.0.6, could you check if your code works in 3.0.6? On Tue, Apr 1, 2014 at 2:40 PM, Cédric Chéneau wrote: > Hello, > > Just tried to upgrade to RestEasy 3.0

Re: [Resteasy-users] Maintaining cookies for stateful webservices

2014-03-16 Thread John D. Ament
on cookie > caching there. I should probably add some high level Resteasy switch > for this too. > > > On 3/9/2014 8:22 PM, John D. Ament wrote: >> Hi all, >> >> Assuming that I'm using the RESTeasy JAX-RS 2.0 client APIs with proxy >> support, is there a way

[Resteasy-users] Maintaining cookies for stateful webservices

2014-03-09 Thread John D. Ament
Hi all, Assuming that I'm using the RESTeasy JAX-RS 2.0 client APIs with proxy support, is there a way to maintain cookies between requests? Or is there a way to read cookies from the response and pass in as request params? John --

Re: [Resteasy-users] Resteasy + Weld CDI

2014-02-25 Thread John D. Ament
ested in using > Resteasy and Weld CDI with Undertow (and the like). > > -Ari > > > On Tue, Feb 25, 2014 at 5:29 PM, John D. Ament > wrote: >> >> Ari, >> >> Are you in a container, or ? >> >> John >> >> On Tue, Feb 25, 2014 at 3:58

Re: [Resteasy-users] Resteasy + Weld CDI

2014-02-25 Thread John D. Ament
Ari, Are you in a container, or ? John On Tue, Feb 25, 2014 at 3:58 PM, Ari King wrote: > Hi, > > A few months back there was "talk" on this list of how to use Weld CDI with > Resteasy. Does anyone know if there are any "plugins" like > GuiceResourceFactory or manual setup approaches to using W

Re: [Resteasy-users] Using Netty, RestEasy and Weld

2014-02-21 Thread John D. Ament
Friso, TO an extent, yes this would compete with DropWizard, but leverage some EE technology in the mix (CDI). John On Fri, Feb 21, 2014 at 9:14 AM, Friso Vrolijken wrote: > Hi, > > -Oorspronkelijk bericht- >> Great stuff, but still don't understand why you guys want to roll your own >

Re: [Resteasy-users] Using Netty, RestEasy and Weld

2014-02-21 Thread John D. Ament
ugh. But "rolling your own app server" also > requires you to write your own management too. > > > On 2/20/2014 9:10 PM, John D. Ament wrote: >> >> It's actually a lot more lightweight. The minimum I can run the >> equivalent on AS7 on is ~ 180 mb i

Re: [Resteasy-users] Using Netty, RestEasy and Weld

2014-02-20 Thread John D. Ament
or the feedback, Bill. - John On Thu, Feb 20, 2014 at 8:58 PM, Bill Burke wrote: > Great stuff, but still don't understand why you guys want to roll your own > app server. Let me take a look. You submitting a PR? > > > On 2/20/2014 8:49 PM, John D. Ament wrote: >> >

Re: [Resteasy-users] Using Netty, RestEasy and Weld

2014-02-20 Thread John D. Ament
Mon, Jan 20, 2014 at 7:55 PM, John D. Ament wrote: > Bill, > > Definitely. I already sent you one on the CdiInjectorFactory bug I > saw in Netty. ( https://issues.jboss.org/browse/RESTEASY-1009 ) > > Another thing to think about is how to get an external > RequestDispatcher.

Re: [Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-18 Thread John D. Ament
putParts) { > inputPart.setMediaType(MediaType.APPLICATION_JSON_TYPE); > MyClass rep = inputPart.getBody(new GenericType(){}); > } > return Response.noContent().build(); > } > > > On 2/16/2014 1:17 PM, John D. Ament wrote: >> Hi a

[Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-16 Thread John D. Ament
Hi all, Just wondering if there are any pointers to how to best handle a file upload via RestEasy's NettyJaxrsServer? When I was doing it via an app server, it was easy because there was an HTTP request. Would injecting @Context HttpServletRequest still work here? I'm inclined to think not but

Re: [Resteasy-users] NettyJaxrsServer and Guice 3.0

2014-02-06 Thread John D. Ament
Pedro, Did you register the GuiceResourceFactory as your injector factory? John On Thu, Feb 6, 2014 at 11:52 AM, Pedro Guilherme Rafael wrote: > I am using resteasy, netty (NettyJaxrsServer) and guice 3.0. > I need to inject dependencies in resource classes. > Anyone can help me with it? > Than

Re: [Resteasy-users] Using Netty, RestEasy and Weld

2014-01-20 Thread John D. Ament
5:10 PM, Bill Burke wrote: > We would of course appreciate any PRs that could come out of this effort. > > On 1/19/2014 9:58 AM, John D. Ament wrote: >> Hi all, >> >> In case anyone's interested, I just put out a blog post on how you can >> use RestE

[Resteasy-users] Using Netty, RestEasy and Weld

2014-01-19 Thread John D. Ament
Hi all, In case anyone's interested, I just put out a blog post on how you can use RestEasy and the Netty Embedded Server with Weld. http://john-ament.blogspot.com/2014/01/bridging-netty-resteasy-and-weld.html and if you'd like to see the code: https://github.com/johnament/resteasy-netty-cdi Pl

Re: [Resteasy-users] logging JSON request/response body/header for rs client called from Arqullian on jboss AS 7.1.1

2014-01-19 Thread John D. Ament
I've struggled with this before as well. Unfortunately, as far as I can tell the resteasy client APIs have no logging. When I look at CXF, you can reuse CXF's logging in/out filter to enable debug of these messages. Personally, I use them to help mock out responses from the server (though I also

Re: [Resteasy-users] too much validation.xml loading?

2013-12-21 Thread John D. Ament
er hand, if I have a faulty > understanding of jax-rs integration with cdi, I could be inadvertently > causing multiple initializations. > > Thanks for the response. I posted a similar question to weld after you > implicitly confirmed my code is not at fault. > > John > >

Re: [Resteasy-users] too much validation.xml loading?

2013-12-20 Thread John D. Ament
Hey John, How are you? It seems like your issue is more Hibernate Validator related. What version are you using? I don't see that message on the 4.3 branch or the 4.1 branch. - John On Fri, Dec 20, 2013 at 5:53 PM, John Franey wrote: > Hi, > > I have a resource that injects the validator, an

[Resteasy-users] Right time to use @Encoded?

2013-12-10 Thread John D. Ament
Hi all, Wanted to get your opinions. What is the right time to use @Encoded? Purely from a security scan standpoint, a number of places in my coded were picked up for XSS, and I'm wondering if annotating these endpoints with @Encoded would help. John ---

Re: [Resteasy-users] How to setup RESTEasy with CDI and Netty?

2013-11-30 Thread John D. Ament
tests. I'm going to see if I can fix those as well. On Tue, Nov 26, 2013 at 7:16 PM, Bill Burke wrote: > Submit a pull request, i'll take a look > > > On 11/26/2013 7:05 PM, John D. Ament wrote: >> >> Bill, >> >> Actually from looking at the current impl,

Re: [Resteasy-users] How to setup RESTEasy with CDI and Netty?

2013-11-26 Thread John D. Ament
up in an SE environment. John On Tue, Nov 26, 2013 at 6:06 PM, Bill Burke wrote: > > > On 11/26/2013 4:17 PM, Christian Helmbold wrote: >> >> >> >> >> >> >>> John D. Ament schrieb am 20:23 Dienstag, >>> 26.November 2013: >>&

Re: [Resteasy-users] How to setup RESTEasy with CDI and Netty?

2013-11-26 Thread John D. Ament
I assumed this would happen, based on Bill's email. you'll probably need to extend the CdiInjectorFactory to use your own BeanManager. On Tue, Nov 26, 2013 at 1:58 PM, Christian Helmbold wrote: > Thank you. After adding one more dependency (javax.servlet-api), I get the > following error, when

Re: [Resteasy-users] Resetting connection?

2013-10-31 Thread John D. Ament
omatically clean up > the connection, but this only happens on a GC. > > In JAX-RS 2.0 you are also required to call Response.close(). > > On 10/15/2013 5:15 PM, John D. Ament wrote: > > I've seen this error lots of times: > > > > Caused by: java.lang.IllegalSta

Re: [Resteasy-users] Announcing Arquillian REST extension.

2013-10-28 Thread John D. Ament
Bill, >From the looks of it, the framework is actually leveraging your client framework.. https://github.com/arquillian/arquillian-extension-rest/blob/master/rest-client/impl/impl-3x/src/main/java/org/jboss/arquillian/extension/rest/client/RestEnricher.java#L94 Anyways, the use cases are many.

Re: [Resteasy-users] getMediaType() Exception

2013-10-21 Thread John D. Ament
Pleas try updating your maven dependency to JAX-RS 2.0 since you're using a JAX-RS 2.0 REST provider. On Mon, Oct 21, 2013 at 10:16 AM, andrew simpson wrote: > hi, I'm using RestEasy 3.0.4.Final, with JBoss AS7.1.0, and trying to build > an arquillian test following the approach described here: >

[Resteasy-users] Resetting connection?

2013-10-15 Thread John D. Ament
I've seen this error lots of times: Caused by: java.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated. Make sure to release the connection before allocating another one. at org.apache.http.impl.conn.BasicClientConnectionManager.getConnection(Bas

Re: [Resteasy-users] Confused on handling response containing collections in json

2013-09-04 Thread John D. Ament
Yeah, I've run into this too (my situation is worse, I have RESTeasy w/ Jackson, Apache CXF w/ Jettison and a third system using Spring MVC w/ Jackson). Jettison's JSON structure is more like XML with its use of root elements in a parent wrapper tag. This is acceptable by JSON standards, but not

Re: [Resteasy-users] Adding Jackson as a provider to the client APIs

2013-08-28 Thread John D. Ament
nside EAP 6.1? > > On 8/28/2013 3:33 PM, John D. Ament wrote: >> Hi all >> >> I'm using RestEasy 2.3.6 (as a part of EAP 6.1). I am using the >> client APIs and was wondering how to add a custom message body >> reader/writer? The other REST server is using Jack

[Resteasy-users] Adding Jackson as a provider to the client APIs

2013-08-28 Thread John D. Ament
Hi all I'm using RestEasy 2.3.6 (as a part of EAP 6.1). I am using the client APIs and was wondering how to add a custom message body reader/writer? The other REST server is using Jackson and has many bindings that are jackson specific. I can't seem to add the JacksonJaxbJsonProvider to REST EA