IncompatibleClassChangeError When Deploying JAX-RS Application to Tomcat

后端 未结 1 1064
粉色の甜心
粉色の甜心 2021-01-16 08:57

When I am running my web project from Eclipse on Tomcat 8 with JDK 8 everything works flawlessly, but once I build this project and deploy the WAR to Tomcat 8 on the server

相关标签:
1条回答
  • 2021-01-16 09:06

    Looks like it's a problem with dependency versions

    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-json</artifactId>
        <version>1.17.1</version>
    </dependency>
    

    The above should match the same version as all your other Jersey dependencies. So just change it to 1.19.

    0 讨论(0)
提交回复
热议问题