Attribute Definition cannot have character [children] - Error in resolver

Michael Kriwonos michael.kriwonos at villanova.edu
Thu Jun 16 14:25:32 EDT 2016


I have been trying to create a new AttributeDefinition for eduPersonEntitlement based on whether a uid "isMemberOf" a group. When the IDP reloads the file I keep getting an error message regarding a SAXParseException and cvc-complex-type.2.3: Element 'resolver:AttributeDefinition' cannot have character [children], because the type's content type is element-only.  I checked the XML reference for a and  cvc-complex-type.2.3 issue, but I don't see any data outside of the defined elements.

I was hoping someone on the list may be able to help. The problematic resolver section(s) and full error message are below.

The is the section of code in my attribute-resolver that it is referencing:
                <resolver:AttributeDefinition id="memberships" xsi:type="ad:Simple" sourceAttributeID="isMemberOf">
                                <resolver:Dependency ref="vuLDAP" />
        </resolver:AttributeDefinition>

                <resolver:AttributeDefinition id="eduPersonEntitlement" xsi:type="ad:Simple">
                                <resolver:Dependency ref="memberships" />
               <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:eduPersonEntitlement" encodeType="false" />
               <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" friendlyName="eduPersonEntitlement" encodeType="false" />
                </resolver:AttributeDefinition>

This is the Error message:

2016-06-16 13:55:04,003 - INFO [net.shibboleth.ext.spring.util.SchemaTypeAwareXMLBeanDefinitionReader:317] - Loading XML bean definitions from file [/opt/shibboleth-idp/conf/attribute-resolver.xml]
2016-06-16 13:55:04,147 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:181] - Service 'shibboleth.AttributeResolverService': Initial load failed
net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 138 in XML document from file [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 138; columnNumber: 33; cvc-complex-type.2.3: Element 'resolver:AttributeDefinition' cannot have character [children], because the type's content type is element-only.
        at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334)
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 138 in XML document from file [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 138; columnNumber: 33; cvc-complex-type.2.3: Element 'resolver:AttributeDefinition' cannot have character [children], because the type's content type is element-only.
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'resolver:AttributeDefinition' cannot have character [children], because the type's content type is element-only.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)

Thanks in advance
Mike Kriwonos
Sr. Systems Administrator
Villanova University
121C Technology Services Building
800 Lancaster Avenue
Villanova, PA 19085
Office: 610-519-7721
Michael.kriwonos at villanova.edu<mailto:Michael.kriwonos at villanova.edu>

[VU05BLUE.png]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160616/794fbad3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10977 bytes
Desc: image001.png
URL: <http://shibboleth.net/pipermail/users/attachments/20160616/794fbad3/attachment-0001.png>


More information about the users mailing list