在Websphere 8.5.5中部署时,Spring Web服务中的链接错误

时间:2020-03-28 03:44:18

标签: spring spring-boot soap websphere

我在我的项目中使用了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);
    }

但是没有运气。有什么建议吗

0 个答案:

没有答案