-
Mar 17th, 2011, 01:15 PM
#1
SAXParseException: Cannot find the declaration of element
I have a project - this is a SpingSecurity+ SAML based application. There is no source code only a few descriptors and necessary jars.
During the deployment of this application I got the following exception:
- Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 3 in XML document from class path resource [security/IdP_m.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'EntitiesDescriptor' at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:396)
The Idp.xml is a metadata file:
<EntitiesDescriptor ID="SMd1f57d98c45c370a2c77dece45502a8c"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docs.oasis-open.org/security/saml/v2.0 http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd">
<EntityDescriptor ID="SM24414e789fd27b052b45a187ef3dc5a6" entityID="http://romswebdev1.cer.ta.com/test/saml2sso">
<IDPSSODescriptor WantAuthnRequestsSigned="false" ID="SM15124b19445c68f42a4f7edf6ae95bd5"
protocolSupportEnumeration="urn:oasis:names:tc:SAM L:2.0
rotocol">
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="http://kkbmsdev.cer.ta.com/affwebservices/public/saml2sso"/>
</IDPSSODescriptor>
</EntityDescriptor>
</EntitiesDescriptor>
The declaration of the element 'EntitiesDescriptor' is in the saml-schema-metadata-2.0.xsd that can be found in the path of the IdP descriptor. Why can't this be found during the parsing?
The application based on Spring+SAML.
The server is WebLogic 11
Please, help.
Last edited by cu4870; Mar 17th, 2011 at 08:51 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules