AbstractMethodError on deploying Spring 4.0 in Tomcat 6

前端 未结 2 830
予麋鹿
予麋鹿 2020-12-01 08:59

I am getting below exception on deploying Spring 4.0.1 app in Tomcat 6.0.37:

SEVERE: Exception sending context initialized event to listener instance of clas         


        
相关标签:
2条回答
  • 2020-12-01 09:24

    The error has nothing to do with the EL. It has all to do with the javax.validation api and hibernate.

    java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider
    

    Hibernate validator 4.3.x is an implementation of javax.validation 1.0 (JSR-303). However you are including the 1.1 API version. Either downgrade the included javax.validation version or upgrade your hibernate validator to 5.0.x.

    0 讨论(0)
  • 2020-12-01 09:26

    Check to see if there are multiple references to validator in your pom file

    <?xml version="1.0" encoding="UTF-8"?>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-validator</artifactId>
        <version>${hibernate-val.version}</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题