Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2014-01-08T07:12:24Z by venkataramanam
venkataramanam
venkataramanam
2 Posts
ACCEPTED ANSWER

Pinned topic JSSEHelper not found

‏2014-01-07T14:06:03Z |

Hi,

In IBM Information server, we make use of client-authentication or bi-directional SSL for interacting with a third party software hosted on another server.

In order to enable the interaction, we have created a separate SSL configuration in the liberty profile with clientAuthentication="true". We switch the SSL configuration using a JSSEHelper class provided by Websphere (JSSEHelper.getInstance().setSSLPropertiesOnThread).

As soon as the third party call is done, we revert the SSL configuration to the one set prior to the call.

All of this worked fine in regular Websphere (full WAS). But when we moved to Liberty, somehow the JSSEHelper is not getting recognized on the classpath. I can see that the class exists in the jar file wlp\lib\com.ibm.ws.ssl_1.0.3.jar

I have enabled the <feature>ssl-1.0</feature> which is the only feature I believe that is required for SSL enablement.

The exception stack trace is as follows...

------------------------

Caused by: com.ibm.iis.isf.j2ee.transaction.J2EETransactionException: com.ibm.wsspi.uow.UOWException: java.lang.NoClassDefFoundError: com/ibm/websphere/ssl/JSSEHelper
at com.ibm.ws.uow.embeddable.EmbeddableUOWManagerImpl.runUnderNewUOW(EmbeddableUOWManagerImpl.java:811)
at com.ibm.ws.uow.embeddable.EmbeddableUOWManagerImpl.runUnderUOW(EmbeddableUOWManagerImpl.java:369)
at com.ibm.iis.isf.j2ee.impl.common.transaction.DefaultTransactionManagerImpl.runUnderTransaction(DefaultTransactionManagerImpl.java:71)
 
....
....
 
Caused by: java.lang.NoClassDefFoundError: com/ibm/websphere/ssl/JSSEHelper
at <information server code>

------------------------

Let us know, how can we proceed with resolving the classpath issue for JSSEHelper class.

Thanks

Venkat, IBM India Software Labs

  • Alasdair
    Alasdair
    55 Posts
    ACCEPTED ANSWER

    Re: JSSEHelper not found

    ‏2014-01-07T17:25:11Z  in response to venkataramanam

    The com.ibm.websphere.ssl.JSSEHelper is not an API in the Liberty profile, it is an SPI which means it can only be called from other Liberty features, it cannot be called by Java EE applications or from code running as shared libraries.

    The only way to resolve this would be for you to write your code as a Liberty feature.

    Alasdair

    • venkataramanam
      venkataramanam
      2 Posts
      ACCEPTED ANSWER

      Re: JSSEHelper not found

      ‏2014-01-08T07:12:24Z  in response to Alasdair

      Thanks very much. We will pursue the suggested liberty-feature based approach.