1 Reply Latest reply on Jan 5, 2015 8:44 AM by Rafael Chies

    EAP and hibernate

    karthik J Newbie

      my application using the

       

      hibernate-validator-5.0.1.Final.jar ,hibernate-validator-annotation-processor-5.0.1.Final.jar,hibernate-validator-cdi-5.0.1.Final.jar, validation-api-1.1.0.Final.jar


      and JBOSS EAP 6.3  using "hibernate-validator-4.3.1.Final-redhat-1.jar"


      I had tried the exclude the "hibernate-validator-4.3.1.Final-redhat-1.jar" in jboss-deployment-structure file and not working


      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

      <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

        <deployment>

           <exclude-subsystems>

              <subsystem name="org.hibernate" />

              <subsystem name="org.hibernate.validator" />

          </exclude-subsystems>

          <exclusions>

            <module name="org.hibernate" />

            <module name="org.hibernate.validator" />

          </exclusions>

          <dependencies>

            <module name="org.apache.xalan" export="true" />

            <module name="org.apache.xerces" export="true" />

          </dependencies>

        </deployment>

      </jboss-deployment-structure>

       

      Error Log:

       

      Caused by: java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ValidatorImpl.forExecutables()Ljavax/validation/executable/ExecutableValidator;

          at com.accenture.afls.cargoprice.aspect.MethodArgumentValidatorAspect.beforeMethodCallAdvice(MethodArgumentValidatorAspect.java:38) [cargoprice-rm-aspect-6.5-SNAPSHOT.jar:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_05]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_05]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_05]

          at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_05]

          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.aspectj.AspectJMethodBeforeAdvice.before(AspectJMethodBeforeAdvice.java:39) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]

          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]