Caused by: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
由 彭 博 在 超过 3 年 之前添加
问题:
Caused by: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:331) ~[jersey-server-2.22.2.jar:na]
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392) ~[jersey-container-servlet-core-2.22.2.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177) ~[jersey-container-servlet-core-2.22.2.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369) ~[jersey-container-servlet-core-2.22.2.jar:na]
at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javaee.jar:na]
at com.apusic.web.container.ServletComponent.initializeComponent(ServletComponent.java:62) ~[apusic.jar:na]
at com.apusic.web.container.ServletComponent.initializeComponent(ServletComponent.java:21) ~[apusic.jar:na]
at com.apusic.web.container.WebComponent.create(WebComponent.java:276) ~[apusic.jar:na]
... 64 common frames omitted
排查过程:
mvn dependency:tree -Doutput=tree.txt看一下依赖关系
原因:
原因:javax.ws.rs-api.jar与金蝶上的jar版本冲突了
解决方案:
将javax.ws.rs-api放到sp目录优先加载