SAP Knowledge Base Article - Preview

2529875 - JDBC driver not found during HANA Database Instance Export: java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver

Symptom

During a System Copy of a NetWeaver AS Java system using Software Provisioning Manager (SAP Note #1680045), SWPM stops with the following error in step runJSizeCheck or loadUsageTypes of the Database Instance Export:

The following messages are displayed in the respective log files, depends on the failed step:

sapinst_dev.log

...
The step runJSizeCheck with step key |NW_Export|ind|ind|ind|ind|0|0|NW_Java_Export_Dialog|ind|ind|ind|ind|javaUnload|0|NW_JAVA_Export_PREPARE|ind|ind|ind|ind|prep|0|runJSizeCheck was executed with status ERROR (Last error reported by the step: <html> <head> </head> <body> Execution of <code>JSizeCheck</code> tool '/usr/sap/.../exe/sapjvm_8/bin/java -classpath /usr/sap/.../SYS/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion com.sap.engine.offline.OfflineToolStart com.sap.inst.jsizecheck.JSizeCheck /usr/sap/.../SYS/global/security/lib/tools/iaik_jce.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_smime.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/.../SYS/global/security/lib/tools/w3c_http.jar:/usr/sap/.../SYS/global/sltools/sharedlib:/ngdbc.jar -systemName ... -targetDbTypes ORA,ADA,DB2,DB6,MSS -outFiles /.../ -ssPropFile /usr/sap/.../SYS/global/security/data/SecStore.properties -ssKeyFile /usr/sap/.../SYS/global/security/data/SecStore.key -trace all' aborts with return code 101.<br>SOLUTION: Check '/tmp/sapinst_instdir/NW750/HDB/COPY/EXP/AS-JAVA/EXP/jsizecheck.log' and '/tmp/sapinst_instdir/NW750/HDB/COPY/EXP/AS-JAVA/EXP/jsizecheck.java.log' for more information. </body></html>).

jsizecheck.java.log:

...

INFO: Main class to start: "com.sap.inst.jsizecheck.JSizeCheck"
...
com.sap.sql.log.OpenSQLException: Could not load class com.sap.db.jdbc.Driver with class loader com.sap.engine.offline.FileClassLoader
...
Caused by: java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver

or

ERROR <timestamp> (<user>) (startInstallation) [/bas/749_REL/bc_749_REL/src/ins/SAPINST/impl/src/sapinst/CSiStepExecute.cpp:1122] id=controller.stepExecuted errno=FCO-00011
The step loadUsageTypes with step key |NW_Export|ind|ind|ind|ind|0|0|NW_Java_Export_Dialog|ind|ind|ind|ind|javaUnload|0|NW_JAVA_Export_PREPARE|ind|ind|ind|ind|prep|0|SAP_Software_Features_Init|ind|ind|ind|ind|initSoftwareFeatures|0|loadUsageTypes was executed with status ERROR ( Last error reported by the step: Execution of UTL tool '/usr/sap/.../.../exe/sapjvm_6/bin/java -classpath /sapmnt/.../global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain /HANAmig/downloads/SWPM/COMMON/INSTALL/UTL:/usr/sap/.../SYS/global/security/lib/tools/iaik_jce.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_smime.jar:/usr/sap/.../SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/.../SYS/global/security/lib/tools/w3c_http.jar:/sapmnt/.../global/sltools/sharedlib:/ngdbc.jar -export -type=keydb -expfile=usages_data_....xml -log=UTL_load_usages.log -sid=... -dsn=jdbc/pool/... -ssprops=/usr/sap/.../SYS/global/security/data/SecStore.properties -ssk=/usr/sap/.../SYS/global/security/data/SecStore.key' aborts with return code 64 due to a database connection error. DIAGNOSIS: The connection parameters are wrong or the database server has been shut down. SOLUTION: Check 'UTL_load_usages.log' and '/tmp/sapinst_instdir/NW740SR2/HDB/COPY/EXP/AS-JAVA/EXP/UTL.java.log' for more information.).

UTL_load_usages.log

<timestamp> PM Info : Establishing DB connection...

<timestamp> PM Path : Exception : The DataBase is down or the connection parameters are wrong: -sid=... -dsn=jdbc/pool/... -ssprops=/usr/sap/.../SYS/global/security/data/SecStore.properties -ssk=/usr/sap/.../SYS/global/security/data/SecStore.key -keyphrase=null
java.lang.Exception
Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.sap.db.jdbc.Driver with class loader com.sap.engine.offline.FileClassLoader@15173950.
(...)
Caused by: java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver

UTL.java.log

java version "1.6.0_81"
Java(TM) SE Runtime Environment (build 6.1.071)
SAP Java Server VM (build 6.1.071 24.55-b03, Sep 28 2014 00:36:48 - 61_REL - optU - linux amd64 - 6 - bas2:226310 (mixed mode))
INFO: Loading tool launcher...
INFO: [OS: Linux] [VM vendor: SAP AG] [VM version: 1.6.0_81] [VM type: SAP Java Server VM]
WARNING: File "/ngdbc.jar" stated but not found
INFO: Main class to start: "com.sap.sl.ut.manager.UtlMain"
INFO: Loading 42 JAR files: ......


Read more...

Environment

  • SAP NetWeaver 7.4/7.5 AS Java 
  • SAP HANA Database
  • Unix

Product

SAP NetWeaver all versions

Keywords

migration, OS, DB, database connection issue, jload, linux, root, path, The connection parameters are wrong or the database server has been shut down, Could not load class com.sap.db.jdbc.Driver with class loader com.sap.engine.offline.FileClassLoader , KBA , BC-INS-MIG , OS/DB Migrations with SWPM and DB refresh , BC-INS-SWPM , Installation with Software Provisioning Manager , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.