<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi all, I am trying to get the a scriptedAttribute but it is always failing due to</div>

<div> </div>

<div>Cannot resolve 'ScriptedAttribute' to a type definition for element 'resolver:AttributeDefinition'.<br/>
    at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334)<br/>
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from file [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 31; columnNumber: 25; cvc-elt.4.2: Cannot resolve 'ScriptedAttribute' to a type definition for element 'resolver:AttributeDefinition'.</div>

<div> </div>

<div>Strangely the type Principle name in the namespace right above is no problem, here the Part of my attribute-resolver</div>

<div> </div>

<div> </div>

<div>
<div><?xml version="1.0" encoding="UTF-8"?><br/>
<resolver:AttributeResolver<br/>
        xmlns:resolver="urn:mace:shibboleth:2.0:resolver"<br/>
        xmlns:pc="urn:mace:shibboleth:2.0:resolver:pc"<br/>
        xmlns:ad="urn:mace:shibboleth:2.0:resolver:ad"<br/>
        xmlns:dc="urn:mace:shibboleth:2.0:resolver:dc"<br/>
        xmlns:enc="urn:mace:shibboleth:2.0:attribute:encoder"<br/>
        xmlns:sec="urn:mace:shibboleth:2.0:security"<br/>
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br/>
        xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd<br/>
                            urn:mace:shibboleth:2.0:resolver:pc http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-pc.xsd<br/>
                            urn:mace:shibboleth:2.0:resolver:ad http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-ad.xsd<br/>
                            urn:mace:shibboleth:2.0:resolver:dc http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-dc.xsd<br/>
                            urn:mace:shibboleth:2.0:attribute:encoder http://shibboleth.net/schema/idp/shibboleth-attribute-encoder.xsd<br/>
                            urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd"></div>

<div>    <!-- ========================================== --><br/>
    <!--      Attribute Definitions                 --><br/>
    <!-- ========================================== --></div>

<div>    <!-- Own Definitions --></div>

<div> </div>

<div><!-- WORKS --><br/>
    <resolver:AttributeDefinition<br/>
    xsi:type="PrincipalName"<br/>
    xmlns="urn:mace:shibboleth:2.0:resolver:ad"<br/>
    id="principal" /></div>

<div> </div>

<div><!-- BREAKS --></div>

<div>    <resolver:AttributeDefinition<br/>
        xsi:type="ScriptedAttribute"<br/>
        xmlns="urn:mace:shibboleth:2.0:resolver:ad"<br/>
        id="testScripted"<br/>
        dependencyOnly="true"><br/>
    <Script><![CDATA[testScripted.addValue("TestWert");]]></Script><br/>
    </resolver:AttributeDefinition></div>

<div> </div>

<div>
<div>     <resolver:AttributeDefinition id="eduPersonAffiliation" xsi:type="Simple" xmlns="urn:mace:shibboleth:2.0:resolver:ad" sourceAttributeID="testScripted"><br/>
        <resolver:Dependency ref="testScripted" /><br/>
    <resolver:AttributeEncoder xsi:type="enc:SAML1String"<br/>
               name="urn:mace:dir:attribute-def:eduPersonAffiliation" /><br/>
    <resolver:AttributeEncoder xsi:type="enc:SAML2String"<br/>
               name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1" friendlyName="eduPersonAffiliation" /><br/>
    </resolver:AttributeDefinition></div>

<div> </div>
</div>

<div> </div>

<div>What am I missing?</div>
</div></div></body></html>