我有3个Maven项目:EAR = WAR + EJB
Websphere应用程序服务器:8.5
java.lang.NoSuchMethodError:javax / ws / rs / core / Application.getProperties()Ljava / util / Map
stackstrace的一部分如下:
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0271E: Uncaught init() exception
created by servlet [jersey-bean-validation-test-servlet] in application
[jersey-bean-validation-test]:
java.lang.NoSuchMethodError: javax/ws/rs/core/Application.getProperties()Ljava/util/Map;
(loaded from file:/<WAS85 location>/AppServer/plugins/javax.j2ee.jaxrs.jar
by org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@4479d9e4)
called from class org.glassfish.jersey.server.ApplicationHandler
(loaded from file:/<WAS85 location>/AppServer/profiles/AppSrv01/installedApps/VM122165
-FCNode04Cell/jersey-bean-validation-test.ear/jersey-bean-validation-test-web.war/WEB-INF
/lib/jersey-server-2.26.jar by
com.ibm.ws.classloader.CompoundClassLoader@d08ed70a[war:jersey-bean-validation-test
/jersey-bean-validation-test-web.war]
Parent: com.ibm.ws.classloader.CompoundClassLoader@8a1ad3f5[PF]
[app:jersey-bean-validation-test]
Delegation Mode: PARENT_LAST).
at org.glassfish.jersey.server.ApplicationHandler.initialize
(ApplicationHandler.java:330)
at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1
(ApplicationHandler.java:316)
.
.
Deployment.xml内容
<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi"
xmi:id="Deployment_155">
<deployedObject xmi:type="appdeployment:ApplicationDeployment"
xmi:id="ApplicationDeployment_155">
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_155"
uri="jersey-bean-validation-test-web.war" classloaderMode="PARENT_LAST"/>
<classloader xmi:id="Classloader_155" mode="PARENT_FIRST"/>
</deployedObject>
</appdeployment:Deployment>
有人可以帮忙吗?预先感谢。