<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Goudy Old Style";
panose-1:2 2 5 2 5 3 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">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
<span style="color:#1F497D">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. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I was hoping someone on the list may be able to help. The problematic resolver section(s) and full error message are below.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The is the section of code in my attribute-resolver that it is referencing:<br>
<resolver:AttributeDefinition id="memberships" xsi:type="ad:Simple" sourceAttributeID="isMemberOf"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <resolver:Dependency ref="vuLDAP" /><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </resolver:AttributeDefinition><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <resolver:AttributeDefinition id="eduPersonEntitlement" xsi:type="ad:Simple"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <resolver:Dependency ref="memberships" /><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:eduPersonEntitlement" encodeType="false" /><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7" friendlyName="eduPersonEntitlement" encodeType="false" /><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </resolver:AttributeDefinition><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is the Error message:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">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]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">2016-06-16 13:55:04,147 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:181] - Service 'shibboleth.AttributeResolverService': Initial load failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance<o:p></o:p></p>
<p class="MsoNormal">Mike Kriwonos<o:p></o:p></p>
<p class="MsoNormal">Sr. Systems Administrator<o:p></o:p></p>
<p class="MsoNormal">Villanova University<o:p></o:p></p>
<p class="MsoNormal">121C Technology Services Building<o:p></o:p></p>
<p class="MsoNormal">800 Lancaster Avenue <br>
Villanova, PA 19085 <o:p></o:p></p>
<p class="MsoNormal">Office: 610-519-7721<o:p></o:p></p>
<p class="MsoNormal"><a href="mailto:Michael.kriwonos@villanova.edu">Michael.kriwonos@villanova.edu</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Goudy Old Style",serif;color:#1F497D"><img border="0" width="168" height="40" id="Picture_x0020_0" src="cid:image001.png@01D1C7DA.5E13AA00" alt="VU05BLUE.png"></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>