Workato · SAP connector

java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException

Short answer

This error means the SAP Java Connector (JCo) library is missing or is not on the agent's classpath. Add the JCo files to lib_ext and make sure config.yml lists lib_ext in the classpath.

VerifiedLast verified

01Error text

Workato error
java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException

02Likely causes

  • The SAP Java Connector (JCo) library is missing or is not referenced in the agent classpath.

03How to fix it

  1. Download the JCo libraries for the agent's operating system.

  2. Add to the lib_ext folder in the agent home: sapjco3.jar, the native library (sapjco3.dll, libsapjco3.so or libsapjco3.dylib) and sap-connector-impl-<version>.jar.

  3. Check that config.yml includes lib_ext in the classpath:

    server:
      classpath:
        - lib_ext
    
  4. Check the YAML indentation in config.yml. Incorrect formatting can stop the agent loading the SAP profile.

  5. Restart the agent.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Workato work:Open Workato jobsWorkato rates and salariesHire a senior Workato developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.