Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-597

XML syntax error in FileBackedHTTPMetadataProvider example - namespace should not have been included

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: Metadata
    • Labels:
      None

      Description

      Hi,

      I've just tried creating a MetadataProvider configuration from the commented-out sample included in conf/metadata-providers.xml and got:

      2015-02-09 15:14:18,383 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:178] - Service 'shibboleth.MetadataResolverService': Initial load failed
      net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 66 in XML document from file [/opt/shibboleth-idp/conf/metadata-providers.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 66; columnNumber: 96; UndeclaredPrefix: Cannot resolve 'metadata:FileBackedHTTPMetadataProvider' as a QName: the prefix 'metadata' is not declared.
      	at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:332)
      Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 66 in XML document from file [/opt/shibboleth-idp/conf/metadata-providers.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 66; columnNumber: 96; UndeclaredPrefix: Cannot resolve 'metadata:FileBackedHTTPMetadataProvider' as a QName: the prefix 'metadata' is not declared.
      	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
      Caused by: org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'metadata:FileBackedHTTPMetadataProvider' as a QName: the prefix 'metadata' is not declared.
      	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
      

      Fixing it was just the matter of stripping the metadata: prefix from the xsi:type - but I think this should be fixed in the example to avoid new deployers getting stuck on this.

      Cheers,
      Vlad


      Vladimir Mencl, Ph.D.
      E-Research Services and Systems Consultant
      BlueFern Computing Services
      University of Canterbury
      Private Bag 4800
      Christchurch 8140
      New Zealand

      https://www.tuakiri.ac.nz/
      vladimir.mencl@canterbury.ac.nz

        Attachments

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            vme28@canterbury.ac.nz Vladimir Mencl
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: