Setting idp.home
Baron Fujimoto
baron at hawaii.edu
Mon Jul 11 19:48:25 EDT 2016
On Thu, Jul 07, 2016 at 08:27:43AM +0100, Rod Widdowson wrote:
>> <context-param>
>> <param-name>idp.home</param-name>
>> <param-value>/home/shib/idp</param-value>
>> </context-param>
>
>I seem to recall that when I tested it you needed to be careful to put that
>Stanza in the correct place. But I have no further details to mind. I know
>others have got this to work in production so I rely on them to chip in.
>
>> Confusingly, I noticed the expanded warfile now has two copies of web.xml:
>> /WEB-INF/web.xml
>> ./web.xml
>
>So how the rebuild works is that it copies edit-webapp into webapp and
>builds the war file from webapp. This means that files that are added to
>edit-webapp and then removed will be sticky in the resultant war. You could
>try removing the rogue file from /webapp and rebuilding. Or move webapp aay
>and copy it in again from the distro.
Maybe it's just me, but I find that kind of tricksy. My assumption was
that I should be updating maintaining customizations via the edit-webapp
directory. Hwoever, apparently the actual warfile is built from webapp,
and not edit-webapp, and webapp will not necessarily reflect the state of
edit-webapp. Is this documented somewhere?
Is it correct then that if I want a "clean" build, I should replace
${idp.home}/webapp with shibboleth-identity-provider-<version>/webapp,
then the edit-webapp contents will overlay cleanly (the install script
doesn't customize the distribution contents of
shibboleth-identity-provider-<version>/webapp)?
FWIW, I finally resorted to starting from scratch and running the install
script again in order to get it to work to the point where it looked like
it was actually trying to load the idp.war again. And I was able to set
idp.home copying webapp/WEB-INF/web.xml to edit-weapp/WEB-INF/web.xml and
by defining it as the first context parameter in. There are subsequent
references in web.xml to idp.home in web.xml, so it seemed logical that it
should precede them.
-baron
--
Baron Fujimoto <baron at hawaii.edu> :: UH Information Technology Services
minutas cantorum, minutas balorum, minutas carboratum desendus pantorum
More information about the users
mailing list