Support Article
Build fails with an error when the setup.sh file is run
SA-52636
Summary
Build fails with an error when the setup.sh file is run.
Error Messages
BUILD FAILED
/opt/pega/install/115672_PCRM7.31/ResourceKit/setup/core/tools/utilities.xml:796:
** JDBC jar file /opt/drivers/db2/db2jcc4.jar not found in lib folder /opt/pega/install/ResourceKit/setup/core/lib **
Steps to Reproduce
- Navigate to the database.properties file
- Specify the db.jdbc.driver.jar property:
db.jdbc.driver.jar=/opt/drivers/db2/db2jcc4.jar,
where the value given is a valid path or filename - Run the file
Root Cause
When the script is run, the driver jar file should be present in the ResourceKit/setup/core/lib directory.
Any path specified as part of the driver.jar property is not used as the path for the lookup. Instead, the lookup evaluates the full specification as the filename, which results in the failure.
Resolution
Perform the following local-change:
- Copy the driver jar file into the ResourceKit/setup/core/lib directory
- Specify the filename for the property value. For example, db.jdbc.driver.jar=db2jcc4.jar
Published March 19, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.