RFT playback results in "NoClassDefFoundError" error

Technote (troubleshooting)


Problem(Abstract)

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

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Functional Tester
General Information

Software version:

7.0, 7.0.0.1, 7.0.0.2

Operating system(s):

Linux, Windows

Reference #:

1281698

Modified date:

2007-11-02

Translate my page

Machine Translation

Content navigation