Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11974

resource adapter configured as module not finding validation provider

XMLWordPrintable

      resource adapter configured as module not finding validation provider

      ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0215: Failed to resume activity org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent$1@3f9a21a1. To resume normal operation it is recommended that you restart the server.: java.lang.RuntimeException: javax.resource.ResourceException: IJ000852: Validation exception
      	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:273)
      	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.access$300(MessageDrivenComponent.java:63)
      	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent$1.resume(MessageDrivenComponent.java:109)
      	at org.jboss.as.server.suspend.SuspendController.resume(SuspendController.java:126)
      	at org.jboss.as.server.ServerService.finishBoot(ServerService.java:430)
      	at org.jboss.as.server.ServerService.boot(ServerService.java:398)
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:370)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: javax.resource.ResourceException: IJ000852: Validation exception
      	at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:177)
      	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:271)
      	... 7 more
      Caused by: javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
      	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)
      	at org.jboss.jca.core.bv.BeanValidationUtil.createValidatorFactory(BeanValidationUtil.java:51)
      	at org.jboss.jca.core.bv.BeanValidationUtil.createValidator(BeanValidationUtil.java:63)
      	at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:165)
      	... 8 more
      

      It looks like the hibernate validator module should have services=import:

      <module name="org.jboss.ironjacamar.impl" xmlns="urn:jboss:module:1.5">
      ...
          <dependencies>
      ...
              <module name="javax.validation.api"/>
              <module name="org.hibernate.validator"/>
      

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified