|
From: Bill B. <bb...@re...> - 2014-02-12 01:35:22
|
Not a combination we have tested or tried to get to work. Honestly, I
don't understand why you don't just use latest Wildfly/Arquillian as its
all integrated there. I can give you hints that may help to get it
together, but I don't have time to debug it for you.
#1. CDI integration is not being used in your resteasy deployment. add
the following context-param
<context-param>
<param-name>resteasy.injector.factory</param-name>
<param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</para-value>
</context-param>
I'm not even sure that will work.
#2 The log message: "Unable to find CDI supporting ValidatorFactory"
means that Resteasy integration could not find a ValidatorFactory under
the InitialContext "java:comp/ValidatorFactory" Maybe CDI is not
enabled? I have never embedded Weld in a non JBoss environment.
On 2/11/2014 7:22 PM, Abhijit Sarkar wrote:
> Perhaps I didn't provide enough detail previously. The code can be found
> here
> https://github.com/abhijitsarkar/groovy/tree/master/movie-manager/movie-manager-web
>
> A log gist is here: https://gist.github.com/anonymous/8947319
>
> I've tried everything under the sun without any success. Pls help.
>
>
> On Tue, Feb 11, 2014 at 1:13 AM, Abhijit Sarkar
> <abh...@gm... <mailto:abh...@gm...>> wrote:
>
> Hi,
> I've a Groovy project where I use RESTEasy with CDI (Weld) and
> deploy to embedded Jetty. What I can't seem to get working is bean
> validation. The documentation says that adding
> 'resteasy-validator-provider-11' along with hibernate validator
> dependencies (hibernate-validator, hibernate-validator-cdi,
> javax.el-api, javax.el) is enough. But the bean validation is simply
> ignored by RESTEasy. I curiously also get the following message in
> the logs:
>
> plugins.validation.ValidatorContextResolver - Unable to find CDI
> supporting ValidatorFactory. Using default ValidatorFactory
>
> I tried registering Hibernate InjectingConstraintValidatorFactory in
> META-INF/validation.xml but it depends on a BeanManager being
> injected and blows up at runtime.
>
> What can I do to get this working?
>
> RESTEasy 3.0.6.Final
> Weld servlet 2.1.2.Final
> Hibernate validator 5.0.3.Final
> Jetty embedded 9.1.1.v20140108
>
> Regards,
> Abhijit
>
>
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience. Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Resteasy-developers mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|