我在我的项目中使用了Spring Web服务(基于Spring Cloud),而我的应用程序服务器是webSphere 8.5.5.13。我试图在WebSphere中部署我的应用程序并出现Linkage错误。
loading constraint violation when resolving method "javax/xml/xpath/XPath.setNamespaceContext(Ljavax/xml/namespace/NamespaceContext;)V" : loader "com/ibm/ws/classloader/CompoundClassLoader@2d2b7c15" of class "org/springframework/xml/xpath/Jaxp13XPathExpressionFactory" and loader "com/ibm/oti/vm/BootstrapClassLoader@d0e18365" of class "javax/xml/xpath/XPath" have different types for the method signature
所以我添加了
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
System.setProperty("javax.xml.xpath.XPathFactory", "org.springframework.xml.xpath.XPathExpressionFactory");
return builder.sources(app.class);
}
但是没有运气。有什么建议吗