× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>
> We just loaded V4R5 and the new Websphere. Now my connection (JDBC) doesn't
work! Any ideas as to why ????????
properities are:......................

url=jdbc:as400://MYSYSTEM

driver=com.ibm.as400.access.AS400JDBCDriver

CODE snips:...............................

 con = null;
      // Load the driver to allow connection to the database
      try {
         // Declare the connection information.
           getProps();

         // This will register the driver with DriverManager.
         Class.forName(dbProp.getProperty("driver"));

         con = DriverManager.getConnection(
    dbProp.getProperty("url"),
    dbProp.getProperty("user") ,
    dbProp.getProperty("password"));
      }
      catch ( ClassNotFoundException cnfex ) {
         System.err.println(
            "Failed to load JDBC/ODBC driver." );
         cnfex.printStackTrace();
         System.exit( 1 );  // terminate program

      }
      catch ( SQLException sqlex ) {
         System.err.println( "Unable to connect" );
         sqlex.printStackTrace();
ERROR:............................................
starting application C:\RPGJAVA\TableDisplay.class
Command line: "C:\jdk1.3.1\bin\java.exe" -classpath
C:\RPGJAVA;C:\jt400\lib\jt400.zip;C:\jdk1.3.1\servlet.jar TableDisplay
The current directory is: C:\RPGJAVA
Unable to connect
java.sql.SQLException: The application requester cannot establish the
connection.
 at com.ibm.as400.access.JDError.throwSQLException(JDError.java:324)
 at
com.ibm.as400.access.AS400JDBCConnection.open(AS400JDBCConnection.java:1074)
 at
com.ibm.as400.access.AS400JDBCConnection.<init>(AS400JDBCConnection.java:248)
 at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:221)
 at java.sql.DriverManager.getConnection(DriverManager.java:517)
 at java.sql.DriverManager.getConnection(DriverManager.java:177)
 at TableDisplay.<init>(tabledisplay.java:44)
 at TableDisplay.main(tabledisplay.java:222)




---------------------------------------------
This message was sent using MHO WebMail.
http://www.mho.net




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.