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.
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.
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.