Getting root cause java.lang.AbstractMethodError while using Jersey ContainerRequestFilter

前端 未结 3 926
抹茶落季
抹茶落季 2021-01-14 16:28
INFO: Server startup in 6705 ms
Nov 29, 2013 6:17:38 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [JerseyServlet] in         


        
3条回答
  •  猫巷女王i
    2021-01-14 16:38

    I needed a more specific answer to the problem so I added the following plugin to maven:

    
      org.apache.maven.plugins
      maven-enforcer-plugin
      3.0.0-M3
      
        
          enforce
          
            
              
            
          
          
            enforce
          
        
      
    
    

    The above showed me all the dependency conflicts so I managed to resolved more than the aforementioned problem and keep my dependency tree tidy.

    The plugin runs when calling:

    mvn clean install
    

    And shows you a warning as follows:

    [WARNING] 
    Dependency convergence error for com.fasterxml.jackson.core:jackson-core:2.8.10 paths to dependency are:
    +-com.omilia:partners:5.4.0-RC-3
      +-org.glassfish.jersey.media:jersey-media-json-jackson:2.27
        +-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.8.10
          +-com.fasterxml.jackson.core:jackson-core:2.8.10
    and
    +-com.omilia:partners:5.4.0-RC-3
      +-com.fasterxml.jackson.core:jackson-databind:2.9.6
        +-com.fasterxml.jackson.core:jackson-core:2.9.6
    

    Subsequently, you can exclude the specific package, when referencing your dependency in your pom:

    
      com.fasterxml.jackson.core
      jackson-core
    
    

    More Information can be found here:

    Dependency Convergence Maven Documentation

提交回复
热议问题