|
From: Ron S. <rs...@re...> - 2015-04-27 22:30:48
|
Hi Mark, Also, can you give us the stacktrace you're seeing. The stacktrace in RESTEASY-826 doesn't help, since the ResourceMethod class disappeared around release 3.0-beta-5. Here's some background. Validation in Resteasy 2.x uses Hibernate Validator 4.x, and validation in Resteasy 3.0.x has two validation implementations: * module resteasy-hibernate-validator, based on Hibernate Validator 4.x * module resteasy-validator-provider-11, based on Hibernate Validator 5.x Which one you get depends on the environment. * Application Server 7 ships with Hibernate Validator 4.x * Wildfly 8 ships with Hibernate Validator 5.x Also, if you upgrade Resteasy in one of those environments, using the modules zip file * resteasy-jboss-modules-3.0.12.Final-SNAPSHOT.zip (meant for AS 7) gives you resteasy-hibernate-validator, and * resteasy-jboss-modules-wf8-3.0.12.Final-SNAPSHOT.zip (meant for WF 8) gives you resteasy-validator-provider-11 So, if you have upgraded Resteasy, be sure you used the right zip file. -Ron On 04/20/2015 12:35 AM, Weinan Li wrote: > Hi Mark, > > Could you please provide your sample usage code so I could reproduce the problem? > > I checked current wildfly resteasy integration: > > power:main weinanli$ pwd > /Users/weinanli/projs/wildfly/wildfly-8.2.0.Final/modules/system/layers/base/org/jboss/resteasy/resteasy-validator-provider-11/main > power:main weinanli$ cat module.xml > <?xml version="1.0" encoding="UTF-8"?> > > <module xmlns="urn:jboss:module:1.3" name="org.jboss.resteasy.resteasy-validator-provider-11"> > <resources> > <resource-root path="resteasy-validator-provider-11-3.0.10.Final.jar"/> > <resource-root path="resteasy-validator-provider-11-3.0.10.Final-jandex.jar"/> > </resources> > > <dependencies> > ... > <module name="org.hibernate.validator”/> > ... > </dependencies> > </module> > > … > > power:base weinanli$ pwd > /Users/weinanli/projs/wildfly/wildfly-8.2.0.Final/modules/system/layers/base > power:base weinanli$ tree ./org/hibernate/validator > ./org/hibernate/validator > ├── cdi > │ └── main > │ ├── hibernate-validator-cdi-5.1.3.Final.jar > │ └── module.xml > └── main > ├── hibernate-validator-5.1.3.Final.jar > └── module.xml > > 3 directories, 4 files > > And confirmed the MethodValidator is not here: > > power:base weinanli$ unzip -l ./org/hibernate/validator/main/hibernate-validator-5.1.3.Final.jar | grep MethodValidator > power:base weinanli$ echo $? > 1 > > I need your sample code to trigger the problem to investigate on this :-) > > > > -- > Weinan Li / JBoss > > > >> On Apr 10, 2015, at 7:03 PM, Mark Vinkx <mar...@uz...> wrote: >> >> Hi >> >> I have the same problem as describe in https://issues.jboss.org/browse/RESTEASY-826 >> It says it was fixed in version 3.0.1. I am using version 3.0.9. I see someone had the same problem with 3.0.3 >> Can someone confirm if this is really fixed or still a problem ? >> >> Mark >> >> ------------------------------------------------------------------------------ >> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >> Develop your own process in accordance with the BPMN 2 standard >> Learn Process modeling best practices with Bonita BPM through live exercises >> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ >> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________ >> Resteasy-developers mailing list >> Res...@li... >> https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers |