Hi
I am trying to deploy a WAR file on JBoss AS 7.1 but some of my applications dependencies are already in modules and are picked up by instead of the ones that are bundled in my war. I have read the documentation and know that this is normal behavior. These dependencies are older and cause my application to crash. What can I do to force the classloader to take the jars bundled into my war in priority ? I've tried to use a jboss-deployment-structure.xml file, in which I specified modules to exclude under <deployment><exclusions>, as well as the jar to use under <deployment><resources> and also <local-last value="false"/> but I still see errors at startup. I use hibernate validator hibernate-validator-5.2.4.Final and one dependency (validation-api-1.1.0.Final) is causing issues
java.lang.NoSuchMethodError: javax.validation.spi.ConfigurationState.getParameterNameProvider()Ljavax/validation/ParameterNameProvider;
at org.hibernate.validator.internal.engine.ValidatorFactoryImpl.<init>(ValidatorFactoryImpl.java:142) [hibernate-validator-5.2.4.Final.jar:5.2.4.Final]
at org.hibernate.validator.HibernateValidator.buildValidatorFactory(HibernateValidator.java:35) [hibernate-validator-5.2.4.Final.jar:5.2.4.Final]
at org.hibernate.validator.internal.engine.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:302) [hibernate-validator-5.2.4.Final.jar:5.2.4.Final]
at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:266) [spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
Is there something that I am missing here ?
Thanks!