1 Reply Latest reply on Jul 11, 2007 7:51 PM by milli

    Hibernate validator @CreditCardNumber not working

    milli

      Hi,

      I'm using seam 1.2.1 and tried it with both Jboss AS 4.0.5 and 4.2. The hibernate validator @CreditCardNumber is not validating the credit card number form input.

      I did look deep in to it and found out the hibernate-annotations.jar used by JBoss has validator classes in it. But I do not see CreditCardNumber class in the jar file. I think JBoss(both 4.0.5 and 4.2) is using an old version hibernate-validator classes. Even other validators like @Digits etc. are not part of it.

      Has anyone come across this issue? How do I use the latest version of hibernate-validator? I tried updating the one used by Jboss but it didn't seem to like it. I hoped 4.2 might be using the latest one but it does not either.

      I tried adding the jar in WEB-INF/lib of my application but it does not work either.