Announcement

Collapse
No announcement yet.

AS400 JDBC Driver

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AS400 JDBC Driver

    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&#039;s on where I am going wrong?


  • #2
    Re: AS400 JDBC Driver

    I figured out my problem. I did not have all the required JAR files in the /lib/custom folder.

    Comment

    Working...
    X