在Tomcat8上运行时,org.opensaml.xml.schema.impl.XSAnyBuilder无法转换为org.opensaml.core.xml.XMLObjectBuilder。

时间:2019-05-03 12:34:17

标签: java tomcat8 opensaml

我有一个基于opensaml的saml项目,该项目在tomcat7上运行正常。我们公司正在升级到tomcat8,我无法运行它。错误消息是

  

java.lang.ClassCastException:org.opensaml.xml.schema.impl.XSAnyBuilder无法转换为org.opensaml.core.xml.XMLObjectBuilder

我在线进行了一些研究,一些文章说这可能是我使用opensaml 2和3混合使用的原因。但是,我只使用opensaml3。这是pom.xml和错误日志

        <dependency>
            <groupId>org.opensaml</groupId>
            <artifactId>opensaml-saml-api</artifactId>
            <version>3.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.opensaml</groupId>
            <artifactId>opensaml-saml-impl</artifactId>
            <version>3.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.opensaml</groupId>
            <artifactId>openws</artifactId>
            <version>1.5.4</version>                
        </dependency> 

Stacktrace:

  

2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR] java.lang.ClassCastException:org.opensaml.xml.schema.impl.XSAnyBuilder无法转换为org .opensaml.core.xml.XMLObjectBuilder   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:238)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:203)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:188)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.java:162)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.init(AbstractXMLObjectProviderInitializer.java:52)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLObjectProviderInitializer.java:45)   2019-05-02T15:12:06.323-04:00 [APP / PROC / WEB / 0] [ERR]在org.opensaml.core.config.InitializationService.initialize(InitializationService.java:56)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在com.vmware.eucenablement.saml.service.SAMLIDPService。(SAMLIDPService.java:27)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在com.vmware.samltoolkit.idp.IDPService。(IDPService.java:43)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在com.jpmchase.gca.idp.GcaIDP.initIDPService(GcaIDP.java:43)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在com.jpmchase.gca.StartStopListener.InitIDP(StartStopListener.java:69)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在com.jpmchase.gca.StartStopListener.contextInitialized(StartStopListener.java:42)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)   2019-05-02T15:12:06.324-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1129)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在org.apache.catalina.startup.HostConfig $ DeployDirectory.run(HostConfig.java:1871)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在java.util.concurrent.FutureTask.run(FutureTask.java:266)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)   2019-05-02T15:12:06.325-04:00 [APP / PROC / WEB / 0] [ERR]在java.lang.Thread.run(Thread.java:748)

有人可以帮忙吗?非常感谢

0 个答案:

没有答案