No Direct Access For Adapters To Load Custom Classes From SCA-INF/lib or SCA-INF/Classes (Doc ID 1367573.1)

Last updated on AUGUST 13, 2016

Applies to:

Oracle SOA Platform - Version: 11.1.1.4.0 and later   [Release: 11gR1 and later ]
Information in this document applies to any platform.

Symptoms

Expected Behavior:

Custom Java code can be put in folder SCA-INF/classes or the classes can be made part of jar and be placed in SCA-INF/lib folder. And, in the jca file, if I specify: TransMode as "CustomImpl" and specify the appropriate class: in the property: CustomImpl, the adapter should recognize this class.

Actual Behavior:

But, the adapter throws the exception that it is not able to recognize the class.

Example:

1. Create a new SOA Composite project.
2. Create BPEL process and expose as SOAP service
3. Add attached java class to project.
4. Create a socket adapter, and specify the attached java class as the java code handshake class in the wizard.
5. Wire the socket adapter to the bpel process, and invoke it within the bpel process.
6. Deploy and run gives below error:

Error:

Error Message: {http://schemas.oracle.com/bpel/extension}bindingFault

Fault ID dc09006/tlets!1.0*soa_853bb464-a018-417c-82d5-2cddb816f1b6/tlets/160002-BpInv0-BpSeq0.3-2
Fault Time Aug 10, 2011 7:49:13 PM
Non Recoverable System Fault :
<bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'OutboundRequestReply' failed due to: Socket Custom Impl. Loading Error Socket Custom Impl. Loading Error Error occured in trying to load the class defining the custom parser. Please check if the class exists in the classpath and implements the ICustomParser interface. Contact oracle support if error is not fixable. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>gov.texas.dps.di.soa.tlets.TletsHandshaker</detail></part><part name="code"><code>null</code></part></bindingFault></bpelFault>

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