Skip to Content
0
Jan 28, 2016 at 07:41 PM

SWPM: Error during JAVA Export - Caused by: java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver

2124 Views

Hi Guys


Im trying to perform a System copy of a NW 7.5 JAVA system based in HANA and Im getting this error during

parameters input


System was installed using same SWPM and its actually working, so not sure why it showing an error regarding com.sap.db.jdbc.Driver.

App Server is running in Linux RHEL 6.x.


Any Help?




An error occurred while processing option SAP NetWeaver 7.5 > SAP HANA Database > System Copy > Source System > Based on AS Java > Database Instance Export( Last error reported by the step: Execution of UTL tool '/usr/sap/POD/J00/exe/sapjvm_8/bin/java -classpath /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain /usr/sap/POD/SWPM10SP09_8/COMMON/INSTALL/UTL:/usr/sap/POD/SYS/global/security/lib/tools/iaik_jce.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_smime.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/POD/SYS/global/security/lib/tools/w3c_http.jar:/sapmnt/POD/global/sltools/sharedlib:/ngdbc.jar -export -type=keydb -expfile=usages_data_POD.xml -log=UTL_load_usages.log -sid=POD -dsn=jdbc/pool/POD -ssprops=/usr/sap/POD/SYS/global/security/data/SecStore.properties -ssk=/usr/sap/POD/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/NW750/HDB/COPY/EXP/AS-JAVA/EXP/UTL.java.log' for more information.). You can now:

Choose Retry to repeat the current step.

Choose Log Files to get more information about the error.

Stop the option and continue later.

Jan 28, 2016 3:20:54 PM Info : Establishing DB connection...

Jan 28, 2016 3:20:54 PM Path : Exception : The DataBase is down or the connection parameters are wrong: -sid=POD -dsn=jdbc/pool/POD

-ssprops=/usr/sap/POD/SYS/global/security/data/SecStore.properties

-ssk=/usr/sap/POD/SYS/global/security/data/SecStore.key -keyphrase=null

java.lang.Exception

at com.sap.exception.BaseExceptionInfo.traceAutomatically(BaseExceptionInfo.java:1230)

at com.sap.exception.BaseExceptionInfo.<init>(BaseExceptionInfo.java:457)

at com.sap.exception.BaseException.<init>(BaseException.java:303)

at com.sap.sl.ut.infoprovider.exceptions.UTInfoException.<init>(UTInfoException.java:105)

at com.sap.sl.ut.manager.persistence.db.DataBaseInfoFactory.connect(DataBaseInfoFactory.java:584)

at com.sap.sl.ut.manager.persistence.db.DataBaseInfoFactory.constructSystemInfo(DataBaseInfoFactory.java:947)

at com.sap.sl.ut.manager.command.Export.execute(Export.java:37)

at com.sap.sl.ut.manager.command.Command.exec(Command.java:90)

at com.sap.sl.ut.manager.UtlMain.exec(UtlMain.java:58)

at com.sap.sl.ut.manager.UtlMain.main(UtlMain.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)

Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.sap.db.jdbc.Driver with class loader com.sap.engine.offline.FileClassLoader [id=12503,parents=System@7074].

at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:104)

at com.sap.sql.connect.factory.VendorConnectionFactory.createInstance(VendorConnectionFactory.java:210)

at com.sap.sql.connect.factory.VendorConnectionFactory.createVendorDriver(VendorConnectionFactory.java:43)

at com.sap.sql.connect.factory.DriverPooledConnectionFactory.<init>(DriverPooledConnectionFactory.java:31)

at com.sap.sql.connect.datasource.DataSourceManager.createPooledConnectionFactory(DataSourceManager.java:642)

at com.sap.sql.connect.datasource.DataSourceManager.createDataSource(DataSourceManager.java:603)

at com.sap.sql.connect.datasource.DataSourceManager.createDataSource(DataSourceManager.java:137)

at com.sap.sql.connect.OpenSQLDataSourceImpl.getDataSource(OpenSQLDataSourceImpl.java:279)

at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection(OpenSQLDataSourceImpl.java:206)

at com.sap.sl.ut.manager.persistence.db.DBConnection.connectViaSecureStore(DBConnection.java:161)

at com.sap.sl.ut.manager.persistence.db.DBConnection.connect(DBConnection.java:173)

at com.sap.sl.ut.manager.persistence.db.DataBaseInfoFactory.connect(DataBaseInfoFactory.java:582)

at com.sap.sl.ut.manager.persistence.db.DataBaseInfoFactory.constructSystemInfo(DataBaseInfoFactory.java:947)

at com.sap.sl.ut.manager.command.Export.execute(Export.java:37)

at com.sap.sl.ut.manager.command.Command.exec(Command.java:90)

at com.sap.sl.ut.manager.UtlMain.exec(UtlMain.java:58)

at com.sap.sl.ut.manager.UtlMain.main(UtlMain.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:162)

Caused by: java.lang.ClassNotFoundException: com.sap.db.jdbc.Driver

at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java:916)

at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:807)

at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java:755)

at com.sap.sql.connect.factory.VendorConnectionFactory.createInstance(VendorConnectionFactory.java:206)

... 20 more

Jan 28, 2016 3:20:54 PM Info : Severe (database) error. Return code: 64

Tried to execute that command from command line and i didnt get any error

podadm 113> java -classpath /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain /usr/sap/POD/SWPM10SP09_8/COMMON/INSTALL/UTL:/usr/sap/POD/SYS/global/security/lib/tools/iaik_jce.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_jsse.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_smime.jar:/usr/sap/POD/SYS/global/security/lib/tools/iaik_ssl.jar:/usr/sap/POD/SYS/global/security/lib/tools/w3c_http.jar:/sapmnt/POD/global/sltools/sharedlib:/ngdbc.jar -export -type=keydb -expfile=usages_data_POD.xml -log=UTL_load_usages.log -sid=POD -dsn=jdbc/pool/POD -ssprops=/usr/sap/POD/SYS/global/security/data/SecStore.properties -ssk=/usr/sap/POD/SYS/global/security/data/SecStore.key

java version "1.8.0_51"

Java(TM) SE Runtime Environment (build 8.1.010)

SAP Java Server VM (build 8.1.010 25.51-b02, Sep 7 2015 13:32:39 - 81_REL - optU - linux amd64 - 6 - bas2:250079 (mixed mode))

INFO: Loading tool launcher...

INFO: [OS: Linux] [VM vendor: SAP AG] [VM version: 1.8.0_51] [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: [/usr/sap/POD/SWPM10SP09_8/COMMON/INSTALL/UTL/sap.com~sl.ut.infoprovider_lib.jar, /usr/sap/POD/SWPM10SP09_8/COMMON/INSTALL/UTL/sap.com~sl.ut.manager.offline.jar, /usr/sap/POD/SYS/global/security/lib/tools/iaik_jce.jar, /usr/sap/POD/SYS/global/security/lib/tools/iaik_jsse.jar, /usr/sap/POD/SYS/global/security/lib/tools/iaik_smime.jar, /usr/sap/POD/SYS/global/security/lib/tools/iaik_ssl.jar, /usr/sap/POD/SYS/global/security/lib/tools/w3c_http.jar, /sapmnt/POD/global/sltools/sharedlib/miglib.jar, /sapmnt/POD/global/sltools/sharedlib/sdt_jcopy_jmigmon.jar, /sapmnt/POD/global/sltools/sharedlib/sdt_jcopy_jmigtime.jar, /sapmnt/POD/global/sltools/sharedlib/sdt_jcopy_jpkgctl.jar, /sapmnt/POD/global/sltools/sharedlib/checkKeyPhrase.jar, /sapmnt/POD/global/sltools/sharedlib/jdbc.jar, /sapmnt/POD/global/sltools/sharedlib/jperflib.jar, /sapmnt/POD/global/sltools/sharedlib/jsizecheck.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~sl.inst.sysidentity.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~sl.ut.infoprovider_lib.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~sl.ut.manager.offline.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~sl~ctc~import.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~antlr.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~config~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~iqlib~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~jdsr~jdsr.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~offline_launcher~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~opensql~implStandalone.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~bl~sl~utility.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~cim~objmgr_lib.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~cim~service_lib.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~dd~db~dictionarydatabase~implDictionaryDatabase.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~dd~db~friendtools.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~exception.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~je~configtool.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~je~offlineconfiguration~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~logging~java~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~sapxmltoolkit~sapxmltoolkit.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~sdt~cvl~impl.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~sec~secstorefs~java~core.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~sld~sldclient_lib.jar, /sapmnt/POD/global/sltools/sharedlib/sap.com~tc~sld~sldstdapi_lib.jar, /sapmnt/POD/global/sltools/sharedlib/sdt_jcopy_common.jar, /sapmnt/POD/global/sltools/sharedlib/sdt_jcopy_jload.jar, /sapmnt/POD/global/sltools/sharedlib/systemHistory.jar]

INFO: Start