I am attempting to connect to an IBM iSeries DB2 system and I need to install a custom AS400 JDBC driver. According to the WIKI, I should put the jar file in /lib/dbdrivers folder however no dbdrivers folder exists. I put my jar file in the /lib/custom folder instead and then updated the conf/dbdrivers.xml file. Now when I declare
var driver = "com.ibm.as400.access.AS400JDBCDriver";
var dbConn = DatabaseConnectionFactory.createDatabaseConnection (driver,address,username,password);
in my javascript, I get the following error:
Caused by: java.sql.SQLException: No suitable driver
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:61)
at java.sql.DriverManager.getConnection(DriverManager .java:545)
at java.sql.DriverManager.getConnection(DriverManager .java:140)
Do I have my jar file in the correct location? If so, any idea's on where I am going wrong?
var driver = "com.ibm.as400.access.AS400JDBCDriver";
var dbConn = DatabaseConnectionFactory.createDatabaseConnection (driver,address,username,password);
in my javascript, I get the following error:
Caused by: java.sql.SQLException: No suitable driver
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at java.sql.SQLException.<init>(SQLException.java:61)
at java.sql.DriverManager.getConnection(DriverManager .java:545)
at java.sql.DriverManager.getConnection(DriverManager .java:140)
Do I have my jar file in the correct location? If so, any idea's on where I am going wrong?
Comment