2 Replies Latest reply on Aug 27, 2014 9:08 PM by John Ament

    Injection of Validator in AS7 vs WildFly 8.1

    John Ament Master

      Recently, I ported an application from AS7.1.1 to WildFly 8.1.  Everything worked fine except for Bean Validation injection.  For some reason, in AS7, this worked fine:



      private Validator validator;


      In WildFly this didn't work.  Based on docs, this should have worked:



      private Validator validator;


      with a failure saying that there was no such name  com.mycompany.MyBean/validator.  Overriding to @Resource(lookup="java:comp/Validator") worked fine.


      Is @Inject supposed to work for Validators in WildFly 8.1?