cancel
Showing results for 
Search instead for 
Did you mean: 

HANA DB Initialization - com.sap.db.jdbc.Driver not found Error

0 Kudos
1,513

Hi Friends,

I am installing default hybris 6.5 (b2b_acc_plus recipie) with HANA DB. When I do initialization system is not able to find the db driver class. Whereas the ngdbc-2.00.1.jar file is already there under platform/lib/dbdriver/ location. Below is the error log: "*

 [yDbDriverValidator] 0    [main] ERROR de.hybris.ant.taskdefs.DbDriverValidator  - Database driver - com.sap.db.jdbc.Driver  could not be found. Make sure you have it under C:\default65011\hybris\bin\platform/lib/dbdriver
 [yDbDriverValidator]
 BUILD FAILED
 C:\default65011\hybris\bin\platform\build.xml:16: The following error occurred while executing this line:
 C:\default65011\hybris\bin\platform\resources\ant\antmacros.xml:161: com.sap.db.jdbc.Driver
 Total time: 3 seconds
 :recipes/b2b_acc_plus:initialize FAILED
 FAILURE: Build failed with an exception.

*"

The classpath file under /platform also has the entry for ngdbc-2.00.1.jar.

Any suggestions will be helpful.

Regards, Arun

View Entire Topic
former_member620692
Active Contributor
0 Kudos

I suggest you to check the details as per https://help.hybris.com/1808/hcd/8bc8abba86691014b2b9c761e88fa207.html

If you do not find any mismatch, it is better to extract the distribution zip again and try.

0 Kudos

Hi Arvind,

I actually followed referred page multiple times, making sure all properties correct. All was looking good. Thanks to you! for referring it again. I revisited the page, and observed I had a blank space after db driver property value in the properties file. And the was the cause. Removed it and it worked!

Regards, Arun

geffchang
Active Contributor
0 Kudos

@Arun Can you post your comment as Answer, and mark it as the official Answer? :)

former_member620692
Active Contributor
0 Kudos

Great! I am happy that your problem was solved finally. You are most welcome @Arun. You can accept the answer so that others can refer it in future.