IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > Troubleshooting and support

Resolving SAP JCo environment setup errors

When deploying a module (Inbound or Outbound) using any interface with the JCo3 jar, the module deployment may fail with the NoClassDefFoundError or a ClassNotFoundException in the run time environment. The error can be resolved by making sure the CWYAP_SAPAdapterExt.jar, which is a mandatory JAR, is available in the IBM BPM or WebSphere Enterprise Service Bus run time class path.

When using JCo, the CWYAP_SAPAdapterExt.jar is a mandatory JAR and must be available in the IBM BPM or WebSphere Enterprise Service Bus run time classpath. If the IBM BPM or WebSphere Enterprise Service Bus run time cannot find the JAR, you will see a stacktrace in the trace/log as shown below:

Caused by: java.lang.ClassNotFoundException: com.ibm.j2ca.sap.ext.JCo3DestinationDataProvider
	at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
	at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:132)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
	at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:597)

To resolve this error...

  1. Stop the IBM BPM or WebSphere Enterprise Service Bus instance

  2. Copy the CWYAP_SAPAdapterExt.jar JAR into the $WPS_Root\lib\ext folder
  3. Restart IBM BPM or WebSphere Enterprise Service Bus and deploy the module again.

Troubleshooting and support