Can't use Apache BVal in a Webservice deployed in JBoss Fuse
Issue
I'm attempting to start a webservice bundle on JBoss Fuse. The bundle is based on Spring MVC, and uses Apache BVal for bean validation.
However, Spring MVC fails to auto detect that JSR-303 support is installed unless I specifically wire it in using this in my Spring Context:
<bean name="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
<property name="providerClass" value="org.apache.bval.jsr303.ApacheValidationProvider" />
</bean>
<mvc:annotation-driven validator="validator"/>
When I do wire it in, JBoss Fuse hangs trying to find the JSR-303 spec.
Environment
- JBoss Fuse
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.