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

2013-11-26 Thread Christian Helmbold
Thank you. After adding one more dependency (javax.servlet-api), I get the following error, when I try to start my RESTEasy/Weld configuration: Exception in thread main java.lang.RuntimeException: Unable to instantiate InjectorFactory implementation.     at

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 christian.helmb...@yahoo.de wrote: Thank you. After adding one more dependency (javax.servlet-api), I get

Re: [Resteasy-users] Replacing ProxyFactory with RestEasyWebTarget does not work

2013-11-26 Thread Bill Burke
This is a Resteasy Client - JAX-RS 2.0 mismatch migration problem. Replace: response.getEntity() with: response.readEntity(String.class); replace String.class to whatever class you want to marshal to. getEntity() returns null if you haven't unmarshalled anything with readEntity(). On

Re: [Resteasy-users] Replacing ProxyFactory with RestEasyWebTarget does not work

2013-11-26 Thread Gabriella Turek
No, I've tried that, it does not work. I get the following error: java.lang.ClassCastException: javax.xml.bind.JAXBElement cannot be cast to nz.org.riskscape.license.rest.domain.LicenseList at nz.org.riskscape.license.rest.RiskScapeLicenseServiceTest.testGetExpiredLic

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

2013-11-26 Thread Christian Helmbold
John D. Ament john.d.am...@gmail.com schrieb am 20:23 Dienstag, 26.November 2013: I assumed this would happen, based on Bill's email. You're right. This happend after adding the following line to my startup code:

Re: [Resteasy-users] Replacing ProxyFactory with RestEasyWebTarget does not work

2013-11-26 Thread Gabriella Turek
So, I've resolved my issue by updating my schema with jaxb:version=2.0 and regenerating the jaxb classes. The tip off was Bill's mention of there being a Resteasy Client - JAX-RS 2.0 mismatch migration problem Cheers! Gaby On 27/11/13 10:00 AM, Gabriella Turek gabriella.tu...@niwa.co.nz wrote:

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

2013-11-26 Thread Bill Burke
On 11/26/2013 4:17 PM, Christian Helmbold wrote: John D. Ament john.d.am...@gmail.com schrieb am 20:23 Dienstag, 26.November 2013: I assumed this would happen, based on Bill's email. You're right. This happend after adding the following line to my startup code:

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

2013-11-26 Thread John D. Ament
Bill, Actually from looking at the current impl, I have a fairly small trivial change. It would only work in CDI 1.1 though. I could probably implement it using reflection to avoid the compilation change, if you're interested in taking the contribution. This would use standard CDI look up in