No announcement yet.

AS400 JDBC Driver

  • 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 = "";
    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>(
    at java.lang.Exception.<init>(
    at java.sql.SQLException.<init>(
    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.