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

run-xacml-client-sample.sh packaged with ExampleClientSDK-CLI-12.0.0.zip is missing libraries

    Details

    • Sprint:
      Sprint 82 - Sustaining
    • Support Ticket IDs:

      Description

      Following the Client SDK XACML example/guide at: http://docs.forgerock.org/en/openam/12.0.0/dev-guide/index/chap-xacml.html

      This involves using the ExampleClientSDK-CLI-12.0.0.zip provided in the OpenAM-12.0.0.zip

      Running the run-xacml-client-sample.sh script results in:

      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/bind/marshaller/NamespacePrefixMapper
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at com.sun.identity.saml2.meta.SAML2MetaUtils.<clinit>(SAML2MetaUtils.java:98)
      	at com.sun.identity.saml2.meta.SAML2MetaManager.<clinit>(SAML2MetaManager.java:88)
      	at com.sun.identity.saml2.soapbinding.QueryClient.<clinit>(QueryClient.java:88)
      	at com.sun.identity.xacml.client.XACMLRequestProcessor.processRequest(XACMLRequestProcessor.java:120)
      	at samples.xacml.XACMLClientSample.testProcessRequest(XACMLClientSample.java:112)
      	at samples.xacml.XACMLClientSample.runSample(XACMLClientSample.java:76)
      	at samples.xacml.XACMLClientSample.main(XACMLClientSample.java:65)
      Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.marshaller.NamespacePrefixMapper
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 19 more
      

      Adding the following jars from an OpenAM12 WAR fixes the missing class issues:

      lib/xmlsec-1.5.6.jar
      lib/webservices-rt-2009-29-07.jar 
      lib/commons-logging-1.1.3.jar
      

      The OpenAM 11 sample works out of the box.

        Attachments

          Activity

            People

            • Assignee:
              jonthomas Jonathan Thomas
              Reporter:
              ian.packer Ian Packer [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h