tag:blogger.com,1999:blog-2330120457456880954.post4417608022846544131..comments2023-11-02T22:17:12.318+11:00Comments on DevGrok: Disabling RichFaces FacesBeanValidatorChris Wattshttp://www.blogger.com/profile/12923587712192007751noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2330120457456880954.post-6586623277554137582010-01-16T12:30:13.951+11:002010-01-16T12:30:13.951+11:00Hi Andrei,
I haven't actually tried getting i...Hi Andrei,<br /><br />I haven't actually tried getting it working (i just wanted to turn it off). However:<br /><br />The validaption-api and hibernate-validator I'm pretty sure are already on the JBoss master classpath (they are on JBoss 5). I'd first start by checking /common/lib and /lib directories to see which versions its got.<br /><br />Next:<br />Look in the code of org.richfaces.validator.ObjectValidator.createInstance()<br />It logs 2 messages.<br />First if it can't used the beanvalidation.<br />And the second is "Hibernate Validator could not be instantiated, use stub instead".<br />If you don't see the 2nd message then it should be loaded ok (just not through validation api).<br /><br />The validation api looks for a META-INF/services/javax.validation.spi.ValidationProvider which is in hibernate-validator-4.0.2.GA.jar (but not in v3.1).<br /><br />Also have a look at:<br /><a href="https://jira.jboss.org/jira/browse/RF-7226" rel="nofollow">this richfaces jira</a>Chris Wattshttps://www.blogger.com/profile/12923587712192007751noreply@blogger.comtag:blogger.com,1999:blog-2330120457456880954.post-52700506277724633012010-01-16T03:03:33.232+11:002010-01-16T03:03:33.232+11:00Hi Chris,
I am new to Bean Validation. I tried to ...Hi Chris,<br />I am new to Bean Validation. I tried to use it in my current project with JSF/Facelets+RichFaces+Seam but it did not work:<br />javax.validation.ValidationException: Unable to find a default provider<br /> at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)<br /><br />I guess it may be a deployment issue? I use JBoss 4.3 EAP. I have hibernate-validator-3.1.0.GA and validation-api-1.0.0.GA in classpath and packaged into EAR.<br /><br />Gould you give nay clue, please?<br /><br />Thank you.<br />Andy.Unknownhttps://www.blogger.com/profile/08570759254672868961noreply@blogger.com