Sorry this problem is related to codi not tomee. After upgrade the bval version of working sample, it reproduced the problems on tomcat. bval-0.2 works and bval-0.4 not work.
On Fri, Sep 14, 2012 at 11:38 PM, Romain Manni-Bucau <[email protected]> wrote: > can you share a ready to run maven project to reproduce it? > > *Romain Manni-Bucau* > *Twitter: @rmannibucau* > *Blog: http://rmannibucau.wordpress.com* > > > > > 2012/9/14 Yaocl <[email protected]> > >> I am using TomEE SNAPSHOT from trunk. >> No error message. The ConstraintValidator not created by CODI ,so not >> @Inject. >> It still created by default validator factory. >> >> >> On Fri, Sep 14, 2012 at 10:58 PM, Romain Manni-Bucau >> <[email protected]> wrote: >> > you don't have any error? >> > >> > did you try tomee snapshot? >> > >> > *Romain Manni-Bucau* >> > *Twitter: @rmannibucau* >> > *Blog: http://rmannibucau.wordpress.com* >> > >> > >> > >> > >> > 2012/9/14 Yaocl <[email protected]> >> > >> >> Hi >> >> >> >> CODI BeanValidation module allow @Inject into ConstraintValidator. >> >> >> >> But I can't make it work with TomEE. nothing injected. >> >> There have some examples with Tomcat >> >> for example basic_registration_form at >> >> http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/ >> >> >> >> It have a UniqueLoginNameValidator.java, I can not make this validator >> >> work under TomEE. >> >> >> >> Regards, >> >> YaoCL >> >> >>
