3 Replies Latest reply on Dec 4, 2014 1:27 PM by Ritesh Mathur

    getting a error while deploying the application. java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;

    Ritesh Mathur Newbie

      Hi I am getting a weird error while deploying my application in Wildfly 8.1 Final    

       

       

      11:06:02,660 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 53) HHH000412: Hibernate Core {4.3.5.Final}

      11:06:02,661 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 53) HHH000206: hibernate.properties not found

      11:06:02,664 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 53) HHH000021: Bytecode provider name : javassist

      11:06:02,673 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-14) HV000001: Hibernate Validator 4.3.1.Final

      11:06:02,686 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000001: Failed to start service jboss.deployment.unit."bpcDAS-PERF.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpcDAS-PERF.ear".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "bpcDAS-PERF.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_25]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_25]

      Caused by: java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;

        at org.hibernate.validator.internal.cdi.ValidationExtension.<init>(ValidationExtension.java:121)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_25]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54)

        at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121)

        at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

        ... 5 more

       

       

      11:06:22,292 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-api.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-core-2.2.7.jar  does not point to a valid jar for a Class-Path reference.

      11:06:22,292 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-api.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-impl-2.2.7.jar  does not point to a valid jar for a Class-Path reference.

      11:06:22,293 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jaxb-core.jar in /C:/wildfly-8.1.0/bin/content/bpcWebServices.war/WEB-INF/lib/jaxb-impl-2.2.7.jar  does not point to a valid jar for a Class-Path reference.

      11:06:22,631 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment bpcWebServices.war

      11:06:22,650 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."bpcWebServices.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpcWebServices.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "bpcWebServices.war"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_25]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_25]

      Caused by: java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;

        at org.hibernate.validator.internal.cdi.ValidationExtension.<init>(ValidationExtension.java:121)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_25]

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.8.0_25]

        at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54)

        at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121)

        at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

        ... 5 more

        • 2. Re: getting a error while deploying the application. java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;
          Jay SenSharma Master

          wildfly 8.1 provides "wildfly-8.1.0.Final/modules/system/layers/base/org/hibernate/validator/main/hibernate-validator-5.1.0.Final.jar"  (and hibernate-validator-cdi-5.1.0.Final.jar) with "wildfly-8.1.0.Final/modules/system/layers/base/org/hibernate/main/hibernate-core-4.3.5.Final.jar",

           

          but from your above message we see that it is loading  [HV000001: Hibernate Validator 4.3.1.Final],    Which seems to be creating conflict here.  Hibernate validator 4.3.x is an implementation of javax.validation 1.0 (JSR-303)


          How did u configure it to use the Hibernate Validator 4.3.1.Final (instead of hibernate-validator-5.1.0.Final) in your case?

          • 3. Re: getting a error while deploying the application. java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration()Ljavax/validation/BootstrapConfiguration;
            Ritesh Mathur Newbie

            when using the hibernate-validator-5.1.0.Final, I was getting the


            2014-12-04 12:20:16,190 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000001: Failed to start service jboss.deployment.unit."bpcWebServices.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpcWebServices.war".WeldStartService: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_25]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_25]

              at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_25]

            Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

            Exception 0 :

            javax.enterprise.event.ObserverException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

              at java.lang.reflect.Constructor.newInstance(Unknown Source)

              at java.lang.Class.newInstance(Unknown Source)

              at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)

              at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:101)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266)

              at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:125)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232)

              at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169)

              at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:128)

              at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:102)

              at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

              at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

              at org.jboss.weld.bootstrap.events.AbstractProcessInjectionTarget.fire(AbstractProcessInjectionTarget.java:32)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessInjectionTarget(ContainerLifecycleEvents.java:177)

              at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:138)

              at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:128)

              at org.jboss.weld.bootstrap.BeanDeployer.deploy(BeanDeployer.java:342)

              at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:271)

              at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:369)

              at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:79)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:92)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

              at java.lang.Thread.run(Unknown Source)

            Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/method/MethodValidator

              at org.jboss.resteasy.plugins.validation.hibernate.AbstractValidatorContextResolver.getGeneralValidator(AbstractValidatorContextResolver.java:47)

              at org.jboss.resteasy.plugins.validation.hibernate.AbstractValidatorContextResolver.getContext(AbstractValidatorContextResolver.java:54)

              at org.jboss.resteasy.plugins.validation.hibernate.ValidatorContextResolverCDI.getContext(ValidatorContextResolverCDI.java:16)

              at org.jboss.resteasy.spi.ResteasyProviderFactory$1.getContext(ResteasyProviderFactory.java:2154)

              at org.jboss.resteasy.cdi.JaxrsInjectionTarget.<init>(JaxrsInjectionTarget.java:42)

              at org.jboss.resteasy.cdi.ResteasyCdiExtension.wrapInjectionTarget(ResteasyCdiExtension.java:169)

              at org.jboss.resteasy.cdi.ResteasyCdiExtension.observeInjectionTarget(ResteasyCdiExtension.java:163)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

              at java.lang.reflect.Method.invoke(Unknown Source)

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

              ... 23 more

            Caused by: java.lang.ClassNotFoundException: org.hibernate.validator.method.MethodValidator from [Module "deployment.bpcWebServices.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)

              ... 35 more

             

             

              at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:37)

              at org.jboss.weld.bootstrap.events.AbstractProcessInjectionTarget.fire(AbstractProcessInjectionTarget.java:32)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessInjectionTarget(ContainerLifecycleEvents.java:177)

              at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:138)

              at org.jboss.weld.bootstrap.AbstractBeanDeployer.fireBeanEvents(AbstractBeanDeployer.java:128)

              at org.jboss.weld.bootstrap.BeanDeployer.deploy(BeanDeployer.java:342)

              at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:271)

              at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:369)

              at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:79)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:92)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

              ... 3 more