Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1551

Inaccessible idp.home logged incorrectly as default location

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.6
    • Fix Version/s: 4.0.0
    • Component/s: Configuration
    • Labels:
      None
    • Operating System:
      Linux
    • Java Version:
      Red Hat OpenJDK 11
    • Servlet Container:
      Apache Tomcat 9

      Description

      Hi,

      on the documentation is noted, that the variable can set since 3.1.2 via context-param{{}} tag  in the web.xml file.

      Doing it like it is written will not work.

      Placing the modified web.xml under edit-webapp/WEB-INF/web.xml an build the war file, will result in an war file with the setting for it. But tomcat will not respect it.

      web.xml:

       <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
       
          <display-name>Shibboleth Identity Provider</display-name>
          <context-param>
              <param-name>idp.home</param-name>
              <param-value>/opt/shibboleth/idp</param-value>
          </context-param>
          <!-- Spring application context files. Files are loaded in the order they appear with subsequent files overwriting 
              same named beans in previous files. -->
          <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>classpath*:/META-INF/net.shibboleth.idp/preconfig.xml,${idp.home}/system/conf/global-system.xml,classpath*:/META-INF/net.shibboleth.idp/config.xml,classpath*:/META-INF/net.shibboleth.idp/postconfig.xml</param-value>
          </context-param>
      

      Tomcat log:

       

      14-Feb-2020 10:06:36.620 INFORMATION [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/var/lib/tomcat9/webapps/idp.war]
      14-Feb-2020 10:06:38.724 INFORMATION [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
      2020-02-14 10:06:38.935 [ERROR] : net.shibboleth.idp.spring.IdPPropertiesApplicationContextInitializer: Unable to find '/conf/idp.properties' at well known locations '[/opt/shibboleth-idp]'
      2020-02-14 10:06:38.938 [ERROR] : org.springframework.web.context.ContextLoader: Context initialization failed

      Or are the documentation misleading?

       

      Thanks for any clarification

       
      clarification
       

        Attachments

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            elcofemcdwv9ltky1lsnpltmpuw=@https://aai-mdc1.mdc-berlin.de/idp/shibboleth elcofemcdwv9ltky1lsnpltmpuw=@https://aai-mdc1.mdc-berlin.de/idp/shibboleth
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 15 minutes
                15m