IBM Support

RFT playback results in "NoClassDefFoundError" error

Troubleshooting


Problem

Attempts to playback IBM Rational Functional Tester (RFT) script when a class in an external jar tries to load an RFT class results in "A NoClassDefFoundError" exception.

Cause

The RFT classloader does not include RFT jar files in the class path if the datastore definition file is missing.

Resolving The Problem

Add a resources\DatastoreDefinition.rftdsd to every jar that contains classes that depend on RFT classes as the file cannot be empty:

  1. Copy a resources\DatastoreDefinition.rftdsd from an existing RFT project folder

  2. Remove any project-specific values from resources\DatastoreDefinition.rftdsd


Note: See the attached jar1.jar file as an example.

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

jar1.zip

[{"Product":{"code":"SSJMXE","label":"IBM Rational Functional Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21281698