<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: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:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m working on an upgrade from v4.3.1 (tomcat9) to 5.1.0 (tomcat10).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After resolving all the Deprecated warnings in v4.3.1 (and switching to Java 17), I did the IdP upgrade to v5.1.0 (and switched over to tomcat10) and went through all the configuration files with a corresponding "idpnew510" version, either
 replacing or updating the existing (v4) config files.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In v4 we were using remote user authentication with a Java Servlet Filter carrying out the authentication (via our University Portal) - that Servlet filter was written in Java 8 and is therefore not compatible with the jakarta framework
 - as we are binning this and (eventually) moving to using Azure AD for authentication, I've been trying to set up LDAP based (via AD) authentication in the first instance (which we had working in IdP v4 as a fall back for remote user authentication if our
 Portal was not available) . . . <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, when I try and start up the IdP it is failing at the "Initialzing OpenSAML" stage, throwing this error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,254 - INFO [org.opensaml.core.config.InitializationService:47] - Initializing OpenSAML using the Java Services API<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,262 - DEBUG [org.springframework.jndi.JndiTemplate:155] - Looking up JNDI object with name [java:comp/env/opensaml.config.partitionName]<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,268 - DEBUG [org.springframework.jndi.JndiLocatorDelegate:102] - Converted JNDI name [java:comp/env/opensaml.config.partitionName] not found - trying original name [opensaml.config.partitionName]. javax.naming.NameNotFoundException:
 Name [opensaml.config.partitionName] is not bound in this Context. Unable to find [opensaml.config.partitionName].<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- it then seems to get stuck in a loop, repeatedly churning out the following until Tomcat is stopped:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,268 - DEBUG [org.springframework.jndi.JndiTemplate:155] - Looking up JNDI object with name [opensaml.config.partitionName]<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,268 - DEBUG [org.springframework.jndi.JndiPropertySource:101] - JNDI lookup for name [opensaml.config.partitionName] threw NamingException with message: Name [opensaml.config.partitionName] is not bound in this Context.
 Unable to find [opensaml.config.partitionName].. Returning null.<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,271 - DEBUG [org.springframework.jndi.JndiTemplate:155] - Looking up JNDI object with name [java:comp/env/opensaml.config.partitionName]<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,272 - DEBUG [org.springframework.jndi.JndiLocatorDelegate:102] - Converted JNDI name [java:comp/env/opensaml.config.partitionName] not found - trying original name [opensaml.config.partitionName]. javax.naming.NameNotFoundException:
 Name [opensaml.config.partitionName] is not bound in this Context. Unable to find [opensaml.config.partitionName].<o:p></o:p></p>
<p class="MsoNormal">2024-04-16 10:34:31,272 - DEBUG [org.springframework.jndi.JndiTemplate:155] - Looking up JNDI object with name [opensaml.config.partitionName]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">. . . ad nauseum until tomcat is stopped<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My feeling is that I've messed up with the LDAP configuration (switching from the old v4 config to the v5 config?) but I have no evidence for that other than the JNDI reference in the logs (?) - so I've reviewed the LDAP authentication
 docs and double checked the configuration but I can't see anything overtly wrong so I'm stumped . . .
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone know the cause of the error I'm seeing? And, more importantly, have any suggestions how to resolve the issue (or where to look for potential mis-configuration)?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Apologies if this is covered somewhere, but my searching of the docs and the mailing list archive didn’t turn anything up . . . :-(<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mike<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="800" style="width:600.0pt">
<tbody>
<tr>
<td width="800" valign="top" style="width:600.0pt;padding:0cm 0cm 11.25pt 0cm">
<p class="MsoNormal" style="line-height:13.0pt"><b><span style="font-size:10.0pt;color:#006938;mso-ligatures:none;mso-fareast-language:EN-GB">Michael White<br>
Senior Developer<br>
Product Development<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:13.0pt"><b><span style="font-size:10.0pt;color:#006938;mso-ligatures:none;mso-fareast-language:EN-GB">Information Services<br>
</span></b><span style="font-size:10.0pt;color:#3A3C39;mso-ligatures:none;mso-fareast-language:EN-GB">University of Stirling<br>
Stirling<br>
FK9 4LA<br>
<br>
Tel: +44 (0) 1786 466877<br>
Email: </span><span style="font-size:12.0pt;color:#3A3C39;mso-fareast-language:EN-GB"><a href="mailto:michael.white@stir.ac.uk"><span style="font-size:10.0pt;color:#0563C1">michael.white</span><span style="font-size:10.0pt;color:#0563C1;mso-ligatures:none">@stir.ac.uk</span></a></span><span style="font-size:10.0pt;color:#3A3C39;mso-ligatures:none;mso-fareast-language:EN-GB"><br>
Web: <a href="https://www.stir.ac.uk/about/professional-services/information-services-and-library/">
<span style="color:#0563C1">Information Services</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.0pt"><span style="font-size:10.0pt;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.0pt"><span style="font-size:10.0pt;mso-ligatures:none;mso-fareast-language:EN-GB">My normal working hours are: Mon-Fri, 8.30-4.30<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:13.0pt"><a href="https://www.facebook.com/stirlinglibrary/"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#0563C1;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="25" height="20" style="width:.2604in;height:.2083in" id="Picture_x0020_1" src="cid:image001.png@01DA8FFA.411C4A60" alt="Facebook icon"></span></a><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><a href="https://x.com/isstirling" target="_blank"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="25" height="20" style="width:.2604in;height:.2083in" id="Picture_x0020_2" src="cid:image002.png@01DA8FFA.411C4A60" alt="X icon"></span></a><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><a href="https://www.instagram.com/universityofstirling/" target="_blank"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="25" height="20" style="width:.2604in;height:.2083in" id="Picture_x0020_3" src="cid:image003.png@01DA8FFA.411C4A60" alt="Instagram icon"></span></a><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><a href="https://www.youtube.com/user/UniversityOfStirling" target="_blank"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="25" height="20" style="width:.2604in;height:.2083in" id="Picture_x0020_4" src="cid:image004.png@01DA8FFA.411C4A60" alt="Youtbue icon"></span></a><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:11.25pt 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:13.0pt"><a href="https://www.stir.ac.uk/" target="_blank"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="160" height="40" style="width:1.6666in;height:.4166in" id="Picture_x0020_5" src="cid:image005.png@01DA8FFA.411C4A60" alt="Banner"></span></a><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;mso-fareast-language:EN-GB"><img border="0" width="313" height="154" style="width:3.2604in;height:1.6041in" id="Picture_x0020_6" src="cid:image006.png@01DA8FFA.411C4A60"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div align="left">
<hr>
</div>
<div align="left"><font face="Arial" size="2">Scotland’s University for Sporting Excellence</font></div>
<div align="left"><font face="Arial" color="gray" size="2">The University of Stirling is a charity registered in Scotland, number SC 011159<br>
</font></div>
</body>
</html>