Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15554

6.5.2 docs for SAML v1.x configuration require update for generation of site id

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.5.2, 7.0.0
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:

      Description

      Bug description

      Attempting to follow https://backstage.forgerock.com/docs/am/6.5/saml1-guide/#saml-1-own-site-id results in a NoClassDefFoundError for com/sun/identity/shared/encode/Base64

      How to reproduce the issue

      1. Deploy an AM server, embedded config and user store.
      2. user the following command from the above document: e.g.: 
        java -cp forgerock-util-24.0.8.jar:openam-shared-6.5.2.jar:openam-federation-library-6.5.2.jar com.sun.identity.saml.common.SAMLSiteID http://idp.amtest2.com:9080/access
      Expected behaviour
      A site ID value is returned.
      
      Current behaviour
      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/identity/shared/encode/Base64
      	at com.sun.identity.saml.common.SAMLSiteID.generateSourceID(SAMLSiteID.java:99)
      	at com.sun.identity.saml.common.SAMLSiteID.main(SAMLSiteID.java:119)
      Caused by: java.lang.ClassNotFoundException: com.sun.identity.shared.encode.Base64
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 2 more
      

      Work around

      Command needs to include openam-keystore jar, e.g.: 

      java -cp forgerock-util-24.0.8.jar:openam-shared-6.5.2.jar:openam-federation-library-6.5.2.jar:openam-keystore-6.5.2.jar com.sun.identity.saml.common.SAMLSiteID http://idp.amtest2.com:9080/access

        Attachments

          Activity

            People

            • Assignee:
              cristina.herraz Cristina Herraz
              Reporter:
              lawrence.yarham Lawrence Yarham
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: