看起来,在类路径上有两个JARxmltool1.4.6和opensaml 3.3.0,它们具有相同的文件default-config.xml。在本例中,类加载器碰巧将opensaml 3.3.0放在xmltool-1.4.6.jar之前,并且加载错误的default-config.xml。cannot be cast to org.opensaml.xml.XMLObjectBuilder
at org.opensaml.xml.XMLConfigurator.initializeObjectProvide
在调用XMLObjectProviderRegistrySupport.getBuilderFactory()之前,我似乎必须初始化opensaml的配置。cannot be cast to org.opensaml.xml.XMLObjectBuilder at org.opensaml.xml.XMLConfigurator.initializeObjectProvidersat org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:166)
我正在尝试使用OpenSAML 3验证SAMLResponse断言。.impl.BodyBuilder cannot be cast to org.opensaml.core.xml.XMLObjectBuilder at org.opensaml.core.xml.config.XMLConfigurator.load(XMLConfigurator.jav
<init>(Unknown Source) at org.opensaml.xml.io.AbstractXMLObjectMarshaller.marshallInto(AbstractXMLObjectMarshaller.java:223)
at org.opensaml.xml.io.AbstractXMLObjectMars
/AssertionValidator;Lorg/opensaml/xmlsec/signature/support/SignatureTrustEngine;Lorg/opensaml/xmlsec/<init>(OpenSaml4AuthenticationProvider.java:732)
at org.springframework.security.saml2.provider.service.authenticatio