Re: [Resteasy-users] Why is GenericEntity an abstract class?

2013-08-13 Thread Juergen Zimmermann
Got it. Thank you very much, Bill! -Ursprüngliche Nachricht- Von: Bill Burke [mailto:bbu...@redhat.com] Gesendet: Dienstag, 13. August 2013 17:07 An: resteasy-users@lists.sourceforge.net Betreff: Re: [Resteasy-users] Why is GenericEntity an abstract class? THe sole purpose of GenericEnti

Re: [Resteasy-users] Unit Testing Exception Mappers

2013-08-13 Thread Bill Burke
You're better off using the ResteasyDeployment api. This allows you to set up a ton of different options programmatically. On 8/13/2013 11:05 AM, Adam Hotz wrote: > Hi > Actually I found the registerProvider factory to do what I wanted. > > Regards, > Adam > > > On Fri, Aug 9, 2013 at 11:14 AM,

Re: [Resteasy-users] Why is GenericEntity an abstract class?

2013-08-13 Thread Bill Burke
THe sole purpose of GenericEntity (and GenericType) is Java type erasure. Take this example: List list = ...; return Response.ok(list).build(); With this, Resteasy has no clue about the generic type of "list". All it knows is that it is a java.util.List. Java just doesn't let you derive t

Re: [Resteasy-users] Unit Testing Exception Mappers

2013-08-13 Thread Adam Hotz
Hi Actually I found the registerProvider factory to do what I wanted. Regards, Adam On Fri, Aug 9, 2013 at 11:14 AM, Bill Burke wrote: > Create a a ResteasyDeployment, add necessary components to it, call > start() get the dispatch, create the mocks. > > On 8/9/2013 10:51 AM, Adam Hotz wrote:

[Resteasy-users] Why is GenericEntity an abstract class?

2013-08-13 Thread Juergen Zimmermann
When I need an instance of GenericEntity I've to create an object of an anonymous class derived from GenericEntity. Therefore, I'm wondering why GenericEntity isn't a concrete class? Any hint is appreciated. Regards, Juergen ---

[Resteasy-users] NoClassDefFoundError: Unable to load builtin provider: org.jboss.resteasy.security.smime.MultipartSignedReader

2013-08-13 Thread Juergen Zimmermann
In WildFly 8.0.0.Alpha4 I upgraded to RESTEasy 3.0.3 and get the following warning. Any hint is appreciated. WARN [org.jboss.resteasy.plugins.providers.RegisterBuiltin] NoClassDefFoundError: Unable to load builtin provider: org.jboss.resteasy.security.smime.MultipartSignedReader

Re: [Resteasy-users] java.lang.NoSuchMethodError: javax.validation.Configuration.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration

2013-08-13 Thread Bill Burke
remove the validation jars from your deployment: *validator*.jar On 8/13/2013 3:25 AM, 刘日新 wrote: > HI, all. > > This is a NOSuchMethodError occurred with resteasy 3.0.2, 3.0.5, my > local web server was tomcat 7.9, jdk: oracle jdk 7. > > The scraps of web.xml: > > > > _Resteasy_ > > > >

[Resteasy-users] 答复: java.lang.NoSuchMethodError: javax.validation.Configuration.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration

2013-08-13 Thread 刘日新
Sorry for my bothers , all. I has fixed this error , which was not a prolem with resteasy. Thanks. Rixin liu 发件人: [地址未验证]-liuri...@linxun.com [mailto:-liuri...@linxun.com] 发送时间: 2013年8月13日 15:26 收件人: resteasy-users@lists.sourceforge.net 主题: [Resteasy-users] java.lang.NoSuchMethodEr

[Resteasy-users] java.lang.NoSuchMethodError: javax.validation.Configuration.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration

2013-08-13 Thread 刘日新
HI, all. This is a NOSuchMethodError occurred with resteasy 3.0.2, 3.0.5, my local web server was tomcat 7.9, jdk: oracle jdk 7. The scraps of web.xml: Resteasy org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher Resteasy /