<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,Scott.</div><div><br></div><div>Thanks for your prompt reply.</div><div><br></div><div>I tried the following code.</div><div><br></div>ApplicationContext context = new ClassPathXmlApplicationContext("/system/conf/global-system.xml");<br>HttpServletRequest b = (HttpServletRequest) context.getBean("shibboleth.HttpServletRequest");</div><div dir="ltr"><br></div><div>However, I got the following error...</div><div><br></div>org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [general-admin-system.xml]<br>Offending resource: class path resource [system/conf/global-system.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [conditional:classpath:/conf/admin/unlock-keys.xml]<br>Offending resource: class path resource [system/conf/general-admin-system.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [conditional:classpath:/conf/admin/unlock-keys.xml]; nested exception is java.io.FileNotFoundException: class path resource [conditional:classpath:/conf/admin/unlock-keys.xml] cannot be opened because it does not exist</div><div dir="ltr"><br></div><div dir="ltr">I could not find unlock-keys.xml file in Idp Home directory.<br><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 10:58 AM Cantor, Scott <<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 3/5/19, 8:53 PM, "dev on behalf of Noriyuki TAKEI" <<a href="mailto:dev-bounces@shibboleth.net" target="_blank">dev-bounces@shibboleth.net</a> on behalf of <a href="mailto:ntakei@sios.com" target="_blank">ntakei@sios.com</a>> wrote:<br>
<br>
> In the module,I'd like to inject a bean including HttpServletRequest.I tried the following code, but it did not work<br>
> properly.<br>
<br>
We do not support Spring annotations and if you want to use them, you're on your own. We use XML wiring only and you can obtain an instance of the request using the shibboleth.HttpServletRequest bean reference.<br>
<br>
-- Scott<br>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net" target="_blank">dev-unsubscribe@shibboleth.net</a><br>
</blockquote></div><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div></div>