org.hibernate.validator.internal.cdi.ValidationExtension didn't implement the required interface in JBoss EAP

Solution Unverified - Updated -

Issue

  • Our web application test-app is failing to deploy with this exception below. Our application depends on our custom module examples.test.module shown below:
<module xmlns="urn:jboss:module:1.1" name="examples.test.module">
    <resources>
      <resource-root path="weld-servlet-2.3.1.Final.jar"></resource>
      <resource-root path="test-shared-classes.jar"></resource>
    </resources>
    <dependencies>
            <module name="javax.servlet.api"></module>
            <module name="org.jboss.as.web"></module>
            <module name="org.apache.commons.lang"></module>
            <module name="javax.api"></module>
            <module name="sun.jdk"></module>
            <module name="javaee.api"></module>
            <module name="io.undertow.servlet"></module>
            <module name="org.hibernate.validator" ></module>
    </dependencies>
</module>
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 60) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host."/test-app": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/test-app": java.lang.RuntimeException: java.lang.RuntimeException: Service class org.hibernate.validator.internal.cdi.ValidationExtension didn't implement the required interface
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Service class org.hibernate.validator.internal.cdi.ValidationExtension didn't implement the required interface
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
    ... 6 more
Caused by: java.lang.RuntimeException: Service class org.hibernate.validator.internal.cdi.ValidationExtension didn't implement the required interface
    at org.jboss.weld.util.ServiceLoader.loadClass(ServiceLoader.java:230)
    at org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:210)
    at org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:182)
    at org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:162)
    at org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:297)
    at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:281)
    at com.google.common.collect.ImmutableCollection$ArrayBasedBuilder.addAll(ImmutableCollection.java:360)
    at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:508)
    at org.jboss.weld.environment.servlet.WeldServletLifecycle.createDeployment(WeldServletLifecycle.java:282)
    at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:155)
    at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:61)
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:184)
    ... 8 more

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.