<div dir="ltr"><div><div><div><div>Benjamin:<br></div>Yep, making that change (INSIDE THE idp.war FILE, NOT THE OTHER metadata.jsp) fixed it for me too.<br><br></div>Scott:<br></div>Where should I file this one?<br><br></div>Best regards,<br>Jeremy Morton (Jez)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 4:51 PM, Benjamin Cherian <span dir="ltr"><<a href="mailto:benjamin.cherian@villanova.edu" target="_blank">benjamin.cherian@villanova.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;font-size:14px">
<div>
<div>
<div style="font-family:Calibri,sans-serif;color:rgb(0,0,0)">The XML is rendered via a JSP. I ran into the same issue during testing of IdP 3 and fixed it by editing WEB-INF/jsp/metadata.jsp so the top 3 lines looks like this</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div style="font-family:Calibri,sans-serif;color:rgb(0,0,0)"><br>
</div>
</blockquote>
<div style="font-family:Calibri,sans-serif">
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><%@ page import="org.springframework.web.context.WebApplicationContext" %><font color="#ff0000"><%</font></div>
<div><font color="#ff0000">%></font><%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %><font color="#ff0000"><%</font></div>
<div><font color="#ff0000">%></font><span style="color:rgb(0,0,0)"><%</span></div>
<div style="color:rgb(0,0,0)">final WebApplicationContext springContext =</div>
</blockquote>
</div>
<div style="font-family:Calibri,sans-serif;color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">
<div>That removed the lines before the start of the XML and the error messages.</div>
<div><br>
</div>
<div>-Ben</div>
</div>
</div>
</div>
<div style="font-family:Calibri,sans-serif;color:rgb(0,0,0)"><br>
</div>
<span style="font-family:Calibri,sans-serif;color:rgb(0,0,0)">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Jeremy Morton <<a href="mailto:jez9999@gmail.com" target="_blank">jez9999@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Shib Users <<a href="mailto:users@shibboleth.net" target="_blank">users@shibboleth.net</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, February 5, 2015 at 10:57 AM<br>
<span style="font-weight:bold">To: </span>Shib Users <<a href="mailto:users@shibboleth.net" target="_blank">users@shibboleth.net</a>><br>
<span style="font-weight:bold">Subject: </span>Re: Publishing IdP's metadata?<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>I'm using the Windows version of Shibboleth, bundled with the IdP, available at
<a href="http://shibboleth.net/downloads/identity-provider/latest/" target="_blank">http://shibboleth.net/downloads/identity-provider/latest/</a>. My file is at: C:\Program Files (x86)\Shibboleth\IdP\metadata\idp-metadata.xml<br>
<br>
</div>
The file has no newlines at the beginning. The output served up by /idp/shibboleth has two.<br>
<br>
Best regards,<br>
Jeremy Morton (Jez)<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 5, 2015 at 3:53 PM, Peter Schober <span dir="ltr">
<<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Jeremy Morton <<a href="mailto:jez9999@gmail.com" target="_blank">jez9999@gmail.com</a>> [2015-02-05 16:47]:<br>
<span>> Yeah but for testing purposes I just need a quick way for my SP to get at<br>
> that data via HTTP(S). Thanks. However, there is still a problem with<br>
> /idp/shibboleth - the <?xml... has two newlines in front of it, which is<br>
> invalid XML. Can this be fixed?<br>
<br>
</span>That URI should just serve up the file at<br>
/opt/shibboleth-idp/metadata/idp-metadata.xml<br>
What version of the IDP are you setting up?<br>
Use $EDITOR to tune that file as desired.<br>
<span><font color="#888888">-peter<br>
</font></span>
<div>
<div>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">
users-unsubscribe@shibboleth.net</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></span>
</div>
<br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br></div>