Exception "java.lang.NoClassDefFoundError: oracle/security/ssl/OracleSSLCredential" is Thrown When Oracle SOAP Library is Used to Invoke a Webservice over SSL (Doc ID 1905142.1)

Last updated on DECEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version 10.1.3.5.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.

Symptoms

In Oracle AS 10.1.3.5.0 when invoking a WebService over SSL from Oracle SOAP library there is a strong dependancy on oracle.security.ssl.OracleSSLCredential which produces exception

oracle.classloader.util.AnnotatedNoClassDefFoundError Missing class: oracle.security.ssl.OracleSSLCredential

 
The code fails when the oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection method tries to create object of oracle.security.ssl.OracleSSLCredential to initiate a SSL Connection.

This happens because Oracle Java SSL Libraries are not visible from the Oracle SOAP shared libraries classloader .

The exception thrown is 

java.lang.NoClassDefFoundError: oracle/security/ssl/OracleSSLCredential

at oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection(OracleSOAPHTTPConnection.java:1200)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.post(OracleSOAPHTTPConnection.java:886)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:722)
at _testBug._jspService(_testBug.java:149)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms