Inject a bean including HttpServletRequest in external project
Noriyuki TAKEI
ntakei at sios.com
Wed Mar 6 00:08:39 EST 2019
Hi,Scott.
Thanks for your prompt reply.
I tried the following code.
ApplicationContext context = new
ClassPathXmlApplicationContext("/system/conf/global-system.xml");
HttpServletRequest b = (HttpServletRequest)
context.getBean("shibboleth.HttpServletRequest");
However, I got the following error...
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from relative
location [general-admin-system.xml]
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]
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
I could not find unlock-keys.xml file in Idp Home directory.
On Wed, Mar 6, 2019 at 10:58 AM Cantor, Scott <cantor.2 at osu.edu> wrote:
> On 3/5/19, 8:53 PM, "dev on behalf of Noriyuki TAKEI" <
> dev-bounces at shibboleth.net on behalf of ntakei at sios.com> wrote:
>
> > In the module,I'd like to inject a bean including HttpServletRequest.I
> tried the following code, but it did not work
> > properly.
>
> 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.
>
> -- Scott
>
>
>
>
>
>
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190306/5e6fae4d/attachment.html>
More information about the dev
mailing list