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:
- Copy a resources\DatastoreDefinition.rftdsd from an existing RFT project folder
- Remove any project-specific values from resources\DatastoreDefinition.rftdsd
Note: See the attached jar1.jar file as an example.
[{"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"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21281698