-
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:
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
- Deploy an AM server, embedded config and user store.
- 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