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
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
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
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
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:
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:
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:
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