Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-15940

Tomcat SAML adapter lib missing dependencies

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • 8.0.1
    • 12.0.0
    • Adapter - JEE
    • Hide

      Install Tomcat 8.5 latest.

      Install Keycloak SAML adapter libs 8 or higher.

      Add valve to <$TOMCAT_HOME>/conf/context.xml

      Or add valve to <$TOMCAT_HOME>/webapps/manager/META-INF/context.xml

      Start tomcat.

      See errors.

      Now install Keycloak SAML adapter libs 7 or lower.

      Show
      Install Tomcat 8.5 latest. Install Keycloak SAML adapter libs 8 or higher. Add valve to <$TOMCAT_HOME>/conf/context.xml Or add valve to <$TOMCAT_HOME>/webapps/manager/META-INF/context.xml Start tomcat. See errors. Now install Keycloak SAML adapter libs 7 or lower.
    • NEW
    • NEW
    • ---
    • ---

    Description

      Deployed Tomcat 8.5.51

      JVM OpendJDK 8 update 231

      Testing in Windows machine.

       

      Installing SAML Tomcat adapter libraries and the from

      https://downloads.jboss.org/keycloak/11.0.2/adapters/saml/keycloak-saml-tomcat-adapter-dist-11.0.2.zip

      Or as earlier as

      https://downloads.jboss.org/keycloak/8.0.2/adapters/saml/keycloak-saml-tomcat-adapter-dist-8.0.2.zip

      Configuring context.xml with valve

          <Valve className="org.keycloak.adapters.saml.tomcat.SamlAuthenticatorValve"/>

      Tomcat fails to load keycloak related libs with the following warnings (just keep the essentials).

      Line 33: 13-Oct-2020 18:40:40.469 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/hk2-core.jar from classloader hierarchy
      Line 64: 13-Oct-2020 18:40:40.469 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/class-model.jar from classloader hierarchy
      Line 95: 13-Oct-2020 18:40:40.485 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/config.jar from classloader hierarchy
      Line 126: 13-Oct-2020 18:40:40.485 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/auto-depends.jar from classloader hierarchy
      Line 157: 13-Oct-2020 18:40:40.485 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/javax.inject.jar from classloader hierarchy
      Line 188: 13-Oct-2020 18:40:40.500 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/hk2-api.jar from classloader hierarchy
      Line 219: 13-Oct-2020 18:40:40.500 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/osgi-resource-locator.jar from classloader hierarchy
      Line 250: 13-Oct-2020 18:40:40.516 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/tiger-types.jar from classloader hierarchy
      Line 281: 13-Oct-2020 18:40:40.516 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/bean-validator.jar from classloader hierarchy
      Line 312: 13-Oct-2020 18:40:40.522 WARNING [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan file:/C:/tomcat-8.5.58/lib/jtype.jar from classloader hierarchy

       

      And evenually crash with the following messages:

       

      14-Oct-2020 16:35:51.027 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.configureStart Marking this application unavailable due to previous error(s)
      14-Oct-2020 16:35:51.036 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more components marked the context as not correctly configured
      14-Oct-2020 16:35:51.037 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

       

      Attached a complete clean log file.

      Works fine with Tomcat SAML adapter version 7.0.1

       

       

      Attachments

        1. catalina.2020-10-14.log
          104 kB
        2. catalina.2020-10-14.log
          72 kB
        3. context.xml
          2 kB

        Activity

          People

            rhn-support-rmartinc Ricardo Martin Camarero
            marsohi Dudi Marsohi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: