Adeel Ansari Adeel Ansari - 5 months ago 59
Java Question

Configuring Single Sign On using WSO2

I'm following this "official" document, but when, finally, I click any of the "SAML" links, I get this error.

java.lang.NoSuchMethodError: org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.<init>(Ljavax/net/ssl/X509KeyManager;Ljavax/net/ssl/X509TrustManager;Ljavax/net/ssl/HostnameVerifier;)V
org.opensaml.DefaultBootstrap.initializeHttpClient(DefaultBootstrap.java:118)
org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:110)
org.wso2.carbon.identity.sso.agent.util.SSOAgentUtils.doBootstrap(SSOAgentUtils.java:110)
org.wso2.carbon.identity.sso.agent.saml.SAML2SSOManager.<init>(SAML2SSOManager.java:135)
org.wso2.carbon.identity.sso.agent.SSOAgentFilter.doFilter(SSOAgentFilter.java:129)
org.wso2.sample.is.sso.agent.SSOAgentSampleFilter.doFilter(SSOAgentSampleFilter.java:107)


Has anyone tried this, and has something to suggest?

Thanks.

Answer

We found that, it includes older version of org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.

In order to fix this, one need to download, newer version of opensaml, that has the intended 3 argument constructor, with all it's dependencies. Then, replace all jar with the new ones.

Doing that will enable you to pass that, but just to hit another hinderance. But that is something very different, to do with configuration, nevertheless.

NB: Take back-up of the original ones.