[Sorry about the bad formatting; I hit "send" accidentally. I'll repeat
with better formatting. --sgp]

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,

a. 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"/>

b. When I do wire it in, JBoss Fuse hangs trying to find the JSR-303 spec.
(From the logs, it appears to be hanging in the afterPropertiesSet method
of the LocalValidatorFactoryBean, when it tries to find the specification.)

Hooking up a debugger seems to show it hanging in
org.apache.servicemix.specs.locator.OsgiLocator.locate().

This is happening on JBoss Fuse ESB 6.0.0-redhat-024 (based on Karaf
2.3.0). I chatted on IRC with Jean-Baptist and he suggested I try the
latest vanilla Karaf, which I did, but the results are the same.

I've opened an issue at RedHat, but I thought I'd also try asking here.

Thanks for any help!

--sgp

On Tue, Aug 6, 2013 at 10:05 AM, Scott Parkerson <[email protected]>wrote:

> 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, a.
> 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"/> b. When I do wire it in,
> JBoss Fuse hangs trying to find the JSR-303 spec. Hooking up a debugger
> seems to show it hanging in
> org.apache.servicemix.specs.locator.OsgiLocator.locate(). Any help would be
> appreciated! Thank you!
>

Reply via email to