IncompatibleClassChangeError When Deploying JAX-RS Application to Tomcat

后端 未结 1 1090
粉色の甜心
粉色の甜心 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

    
        com.sun.jersey
        jersey-json
        1.17.1
    
    

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

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