FW: Shibboleth installation issues - unable to find /conf/idp.properties

Then, Ricardo thenr at wit.edu
Tue Nov 16 19:39:22 UTC 2021


Hello,

I am looking for some assistance with a new installation of Shibboleth IDP3. I currently have IDP3 with jetty-9.3.9.v20160517 running on a Windows 2016R2 server. I am looking to upgrade the system to a Windows 2019 and the latest version of Shibboleth IDP 4. Per Shib’s documentation, it is recommended to do an in-place upgrade rather than going directly to IDP4 as certain files from an older version might not work with IDP4 and could cause issues later. As of right now, I have a new instance of Windows 2019R2 server with IDP3 and jetty-9.4.35.v20201120. My goal was to configure the new server, copy the metadata file from the 2016 server, and get up and running, then do an in-place upgrade to IDP4. I wanted to stay away from touching the current Windows 2016R2 server to avoid any disruption. However, I keep running into the following issue:

- WARN [org.eclipse.jetty.annotations.AnnotationParser:569] - javax.json.stream.JsonParsingException scanned from multiple locations: jar:file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/jetty-base/tmp/jetty-0_0_0_0-443-idp_war-_idp-any-7673431210289208811/webinf/WEB-INF/lib/javax.json-1.0.4.jar!/javax/json/stream/JsonParsingException.class, jar:file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/jetty-base/tmp/jetty-0_0_0_0-443-idp_war-_idp-any-7673431210289208811/webinf/WEB-INF/lib/javax.json-api-1.0.jar!/javax/json/stream/JsonParsingException.class
2021-11-15 17:26:52,870 - INFO [org.eclipse.jetty.annotations.AnnotationConfiguration:473] - Scanning elapsed time=4429ms
2021-11-15 17:26:53,952 - INFO [org.eclipse.jetty.server.handler.ContextHandler.idp:2363] - No Spring WebApplicationInitializer types detected on classpath
2021-11-15 17:26:54,015 - INFO [org.eclipse.jetty.server.session:334] - DefaultSessionIdManager workerName=node0
2021-11-15 17:26:54,015 - INFO [org.eclipse.jetty.server.session:339] - No SessionScavenger set, using defaults
2021-11-15 17:26:54,015 - INFO [org.eclipse.jetty.server.session:132] - node0 Scavenging every 600000ms
2021-11-15 17:26:54,031 - WARN [org.eclipse.jetty.security.SecurityHandler:758] - ServletContext at o.e.j.w.WebAppContext@3745e5c6{Shibboleth Identity Provider,/idp,[file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/jetty-base/tmp/jetty-0_0_0_0-443-idp_war-_idp-any-7673431210289208811/webinf/, jar:file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/war/idp.war!/],STARTING}{C:/Program Files (x86)/Shibboleth/IdP/war/idp.war} has uncovered http methods for path: /*
2021-11-15 17:26:54,031 - INFO [org.eclipse.jetty.server.handler.ContextHandler.idp:2363] - Initializing Spring root WebApplicationContext
2021-11-15 17:26:54,234 - WARN [org.eclipse.jetty.webapp.WebAppContext:533] - Failed startup of context o.e.j.w.WebAppContext at 3745e5c6{Shibboleth Identity Provider,/idp,[file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/jetty-base/tmp/jetty-0_0_0_0-443-idp_war-_idp-any-7673431210289208811/webinf/, jar:file:///C:/Program%20Files%20(x86)/Shibboleth/IdP/war/idp.war!/],UNAVAILABLE}{C:/Program Files (x86)/Shibboleth/IdP/war/idp.war}
net.shibboleth.utilities.java.support.logic.ConstraintViolationException: Unable to find '/conf/idp.properties' at well known locations
                at net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer.initialize(IdPPropertiesApplicationContextInitializer.java:138)


The C:\Program Files (x86)\Shibboleth\IdP\jetty-base\webapps\idp.xml file contains the following:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<!-- =============================================================== -->
<!-- Configure the Shibboleth IdP webapp                             -->
<!-- =============================================================== -->
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="war"><Property name="idp.war.path" /></Set>
  <Set name="contextPath"><Property name="idp.context.path"  /></Set>
  <Set name="extractWAR">false</Set>
  <Set name="copyWebDir">false</Set>
  <Set name="copyWebInf">true</Set>
</Configure>

I have modified the C:\Program Files (x86)\Shibboleth\IdP\jetty-base\start.d\idp.ini file to have the following entries:

idp.context.path=/idp
idp.war.path=C:/Program Files (x86)/Shibboleth/IdP/war/idp.war

I have modified the idp.ini file to either use the full path or just the /idp path as I saw some users report online that might fix it. The Shibboleth IDP3 daemon has the following properties configured:
                JAVA:
                                Java class path= C:\Program Files (x86)\Shibboleth\Jetty\\start.jar
-Didp.home=C:/Program Files (x86)/Shibboleth/IdP
-Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.Slf4jLog
-Djava.io.tmpdir=C:/Program Files (x86)/Shibboleth/IdP/jetty-base/tmp
-XX:+UseG1GC

                STARTUP:
jetty.base=C:\Program Files (x86)\Shibboleth\IdP\\jetty-base
jetty.logging.dir=C:\Program Files (x86)\Shibboleth\IdP\\jetty-base\logs
STOP.PORT=8963
STOP.Key={5EC3DDCF-1047-4A76-99EC-687A248A0DB2}

I am not entirely sure what I am missing or if I am changing the correct settings. Any help on this is highly appreciated it. And if I should do the upgrade differently, please let me know, I am all open ears.

Thank you in advance!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20211116/afe44477/attachment.htm>


More information about the users mailing list