<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sorry I didn't get back to you more quickly, I missed this mail somehow...<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2021-06-18, at 12:59, Jehan PROCACCIA <<a href="mailto:jehan.procaccia@tem-tsp.eu" class="">jehan.procaccia@tem-tsp.eu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div data-marker="__QUOTED_TEXT__" class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class=""><div class="">...<br class=""><div class="">Ok, I added the load of the p: namespace with <code class="xml color1" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; background-image: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: #808080 !important;">xmlns:p</code><code class="xml plain" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; background-image: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit;">=</code><code class="xml string" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; background-image: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: #003366 !important;">"<a href="http://www.springframework.org/schema/p" style="text-decoration: none; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; background-image: none; border: 0px; inset: auto; float: none; height: auto; line-height: 20px; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; vertical-align: baseline; width: auto; box-sizing: content-box; min-height: inherit; color: #003366 !important;" class="" target="_blank" rel="noopener">http://www.springframework.org/schema/p</a>"</code><div style="clear: both;" class=""><br class=""></div><div style="clear: both;" class="">But still , it fails now on another error : <br class=""></div><div style="clear: both;" class=""><br class=""></div><div style="clear: both;" class=""><span style="font-size: 10pt;" class=""><em class="">[aggregator-cli]# ./mda.sh ../config-imt.xml main</em></span><br class=""><span style="font-size: 10pt;" class=""><em class="">ERROR - Unable to initialize Spring context</em></span><br class=""><span style="font-size: 10pt;" class=""><em class="">org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 21 in XML document from URL [file:/root/aggregator-cli-0.9.2/../config-imt.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 21; columnNumber: 45; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>":property}'. One of '{"<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>":import, "<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>":alias, "<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>":bean, WC[##other:"<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>"]}' is expected.</em></span><br class=""><span style="font-size: 10pt;" class=""><em class=""> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399) ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]</em></span><br class=""></div></div></div></div></div></div></div></div></div></div></blockquote><div><br class=""></div><div>This is just an XML syntax error:</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class="" style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div data-marker="__QUOTED_TEXT__" class=""><div class="" style="font-size: 12pt;"><div class="" style="font-size: 12pt;"><div class=""><div class=""><div class=""><div class="" style="clear: both;"><span class="" style="font-size: 10pt;"><em class="">Line 21 in XML document from URL [file:/root/aggregator-cli-0.9.2/../config-imt.xml] is invalid</em></span></div></div></div></div></div></div></div></div></div></blockquote><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class="" style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div data-marker="__QUOTED_TEXT__" class=""><div class="" style="font-size: 12pt;"><div class="" style="font-size: 12pt;"><div class=""><div class=""><div class=""><div class="" style="clear: both;"><span class="" style="font-size: 10pt;"><em class="">lineNumber: 21; columnNumber: 45; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>":property}</em></span></div></div></div></div></div></div></div></div></div></blockquote></div><div><br class=""></div><div>Your problem is that this bean definition is corrupt:</div><div><br class=""></div><div><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <bean id="source" class="net.shibboleth.metadata.dom.DomFilesystemSourceStage" p:source-ref="metadataDirectory" p:parserPool-ref="parserPool"/></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <property name="id" value="source"/></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <property name="parserPool"></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <bean class="net.shibboleth.utilities.java.support.xml.BasicParserPool" init-method="initialize"/></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> </property></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <property name="source"></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <bean class="java.io.File"></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> <constructor-arg value="/root/xml/fede-imt-metadata-git/"/></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> </bean></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> </property></span></em><br style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><em style="font-family: arial, helvetica, sans-serif; font-size: 16px;" class=""><span style="font-size: 10pt;" class=""> </bean></span></em></div><div><br class=""></div><div>Here, the first line ends with "/>" which closes the XML tag. What follows isn't nested inside the bean definition as a result and you can't have a "property" tag outside one.</div><div><br class=""></div><div>I think maybe you've cut and paste one thing inside another and ended up with invalid XML.</div><div><br class=""></div><div>You can fix this by either:</div><div><br class=""></div><div>* removing the p:property definitions from the bean tag and removing the trailing "/" so that the <property> definitions are correctly nested, or</div><div><br class=""></div><div>* remove everything from the first <property> to the </bean> and fix up the p:property values. In particular you'd need to define parserPool somewhere.</div><div><br class=""></div><div>You also have a duplicate definition of metadataDirectory just after that; as I say, this looks like a cut-and-paste accident to me.</div><div><br class=""></div><div>I've appended something that at least passes XML syntax and bean definition checks (but can't open any files); I hope that moves things along a bit.</div><div><br class=""></div><div>Cheers,</div></div><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div class=""><span class="Apple-tab-span" style="white-space: pre;"><br class="Apple-interchange-newline"></span> -- Ian<br class=""></div><div class=""><span class="Apple-style-span" style="font-size: medium;"><br class=""></span></div></span></div></span><br class="Apple-interchange-newline">
</div><div class=""><div class=""><?xml version="1.0" encoding="UTF-8"?></div><div class=""><beans default-init-method="initialize"</div><div class=""> xmlns="<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a>" xmlns:p="<a href="http://www.springframework.org/schema/p" class="">http://www.springframework.org/schema/p</a>"</div><div class=""> xmlns:util="<a href="http://www.springframework.org/schema/util" class="">http://www.springframework.org/schema/util</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>"</div><div class=""> xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" class="">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" class="">http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</a></div><div class=""> <a href="http://www.springframework.org/schema/util" class="">http://www.springframework.org/schema/util</a> <a href="http://www.springframework.org/schema/util/spring-util-3.0.xsd" class="">http://www.springframework.org/schema/util/spring-util-3.0.xsd</a>"></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><!-- Configuration Options for the metadata aggregation process --></div><div class=""> <bean id="metadataDirectory" class="java.io.File"></div><div class=""> <constructor-arg value="/root/xml/fede-imt-metadata-git/"/></div><div class=""> </bean></div><div class=""> <bean id="localMetadataDirectory" class="java.io.File"></div><div class=""> <constructor-arg value="/root/xml/fede-imt-metadata-git/"/></div><div class=""> </bean></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><bean id="parserPool" class="net.shibboleth.utilities.java.support.xml.BasicParserPool" init-method="initialize"/></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><bean id="readLocalMetadata" class="net.shibboleth.metadata.dom.DOMFilesystemSourceStage"</div><div class=""> p:id="readLocalMetadata" p:parserPool-ref="parserPool" p:source-ref="localMetadataDirectory"/></div><div class=""><br class=""></div><div class=""> <!-- First, we define the stages for our pipeline --></div><div class=""> <!-- My initial 0.7 JP <bean id="readIn" p:id="readIn" class="net.shibboleth.metadata.dom.DomFilesystemSourceStage" p:source-ref="metadataDirectory" p:parserPool-ref="parserPool"/> --></div><div class=""><br class=""></div><div class=""> <bean id="source" p:id="source"</div><div class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>class="net.shibboleth.metadata.dom.DOMFilesystemSourceStage"</div><div class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>p:source-ref="metadataDirectory" p:parserPool-ref="parserPool"/></div><div class=""><br class=""></div><div class=""> <bean id="createEntitiesDescriptor" class="net.shibboleth.metadata.dom.saml.EntitiesDescriptorAssemblerStage"></div><div class=""> <property name="id" value="createEntitiesDescriptor"/></div><div class=""> </bean></div><div class=""> <bean id="generateContentReferenceId" class="net.shibboleth.metadata.dom.saml.GenerateIdStage"></div><div class=""> <property name="id" value="generateContentReferenceId" /></div><div class=""> </bean></div><div class=""> <bean id="signMetadata" class="net.shibboleth.metadata.dom.XMLSignatureSigningStage"></div><div class=""> <property name="id" value="signMetadata"/></div><div class=""> <property name="privateKey"></div><div class=""> <bean class="net.shibboleth.ext.spring.factory.PrivateKeyFactoryBean"></div><div class=""> <property name="resource"></div><div class=""> <bean class="org.springframework.core.io.FileSystemResource"></div><div class=""> <constructor-arg></div><div class=""> <bean class="java.io.File"></div><div class=""> <constructor-arg value="path/to/private-key.pem"/></div><div class=""> </bean></div><div class=""> </constructor-arg></div><div class=""> </bean></div><div class=""> </property></div><div class=""> </bean></div><div class=""> </property></div><div class=""> </bean></div><div class=""> <bean id="serialize" class="net.shibboleth.metadata.pipeline.SerializationStage"></div><div class=""> <property name="id" value="serializeIdPs"/></div><div class=""> <property name="outputFile"></div><div class=""> <bean class="java.io.File"></div><div class=""> <constructor-arg value="/root/xml/fede-imt-metadata-git/Downloads/fede-imt-aggregate.xml"/></div><div class=""> </bean></div><div class=""> </property></div><div class=""> <property name="serializer"></div><div class=""> <bean id="domSerializer" class="net.shibboleth.metadata.dom.DOMElementSerializer" /></div><div class=""> </property></div><div class=""> </bean></div><div class=""> <!-- Next we define a pipeline with all the stages in it --></div><div class=""> <bean id="main" class="net.shibboleth.metadata.pipeline.SimplePipeline" init-method="initialize"></div><div class=""> <property name="id" value="main"/></div><div class=""> <property name="stages"></div><div class=""> <list></div><div class=""> <ref bean="source"/></div><div class=""> <ref bean="removeInvalidContactPerson"/></div><div class=""> <ref bean="removeOrganization"/></div><div class=""> <ref bean="createEntitiesDescriptor"/></div><div class=""> <ref bean="generateContentReferenceId" /></div><div class=""> <ref bean="signMetadata"/></div><div class=""> <ref bean="serialize" /></div><div class=""> </list></div><div class=""> </property></div><div class=""> </bean></div><div class=""></beans></div></div><div class=""><br class=""></div>
<br class=""></body></html>