Issue with upgrading to SAML3

Eze Ikonne ike.ikonne at aricent.com
Sun Jan 6 19:19:51 EST 2019


Hi all,

I am trying to upgrade to the latest version of SAML3, but I am receiving the following exception.

Any ideas?
Any configuration which need to be initialized/supplied? Any insight will be appreciated.

In the latest changes I included the following jars:

opensaml-core-3.4.1.jar
opensaml-api-3.4.1.jar
opensaml-impl-3.4.1.jar

openws-1.5.6.jar
xmltooling-1.4.6.jar

One change made is in SimpleSamlTokenManager.java

    public SimpleSamlTokenManager(final String identityProviderName) throws TokenException {
        this.identityProviderName = identityProviderName;

        try {
            //DefaultBootstrap.bootstrap(); ------ existing line, which was throwing error
            InitializationService.initialize(); -- new line added now

        } catch (InitializationException e) {
            log.debug("OpenSAML configuration failed.", e);
            throw new TokenException("OpenSAML configuration failed", e);
        }

        new ExpiringObjectStorageServiceSweeper(myTimer, 15*1000, base64map);

        //initialize queue and thread
        initializeSynchronizationQueue();

        //added to support token synchronization
        initialize(null);
    }
2019-01-05 22:56:38,793 [main] INFO  o.o.c.c.InitializationService - Initializing OpenSAML using the Java Services API
2019-01-05 22:56:38,793 [main] ERROR c.s.c.s.i.SingleSignonServiceImpl - Could not create token manager
java.lang.NoClassDefFoundError: net.shibboleth.utilities.java.support.component.ComponentInitializationException
              at org.opensaml.core.xml.config.AbstractXMLObjectProviderInitializer.init(AbstractXMLObjectProviderInitializer.java:38) ~[opensaml-core-3.4.1.jar:?]
              at org.opensaml.core.xml.config.XMLObjectProviderInitializer.init(XMLObjectProviderInitializer.java:45) ~[opensaml-core-3.4.1.jar:?]
              at org.opensaml.core.config.InitializationService.initialize(InitializationService.java:56) ~[opensaml-core-3.4.1.jar:?]
              at com.sterlingcommerce.component.token.saml.SimpleSamlTokenManager.<init>(SimpleSamlTokenManager.java:159) ~[authentication.jar:?]
              at com.sterlingcommerce.component.sso.impl.SingleSignonServiceImpl.initSimpleSamlTokenManager(SingleSignonServiceImpl.java:1440) ~[authentication.jar:?]
              at com.sterlingcommerce.component.sso.impl.SingleSignonServiceImpl.initTokenManager(SingleSignonServiceImpl.java:1387) ~[authentication.jar:?]
              at com.sterlingcommerce.component.sso.impl.SingleSignonServiceImpl.start(SingleSignonServiceImpl.java:1306) [authentication.jar:?]
              at $ServiceWithLifecycle_168214e1b3b.start($ServiceWithLifecycle_168214e1b3b.java) [?:?]
              at $ServiceWithLifecycle_168214e1b1d.start($ServiceWithLifecycle_168214e1b1d.java) [?:?]
              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.start(ServiceManagerImpl.java:75) [hadrian.jar:?]
              at $ServiceManager_168214e1b14.start($ServiceManager_168214e1b14.java) [?:?]
              at $ServiceManager_168214e1b12.start($ServiceManager_168214e1b12.java) [?:?]
              at com.sterlingcommerce.hadrian.Main.main(Main.java:119) [hadrian.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) ~[?:1.8.0]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[?:1.8.0]
              at java.lang.reflect.Method.invoke(Method.java:508) ~[?:1.8.0]
              at com.zerog.lax.LAX.launch(Unknown Source) [lax.jar:?]
              at com.zerog.lax.LAX.main(Unknown Source) [lax.jar:?]
Caused by: java.lang.ClassNotFoundException: net.shibboleth.utilities.java.support.component.ComponentInitializationException
              at java.net.URLClassLoader.findClass(URLClassLoader.java:609) ~[?:1.8.0]
              at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:925) ~[?:2.9 (06-26-2018)]
              at java.lang.ClassLoader.loadClass(ClassLoader.java:870) ~[?:2.9 (06-26-2018)]
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:343) ~[?:1.8.0]
              at java.lang.ClassLoader.loadClass(ClassLoader.java:853) ~[?:2.9 (06-26-2018)]
              ... 19 more

=====================================================
Please refer to http://www.aricent.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190107/1b35b539/attachment.html>


More information about the dev mailing list