Hello,

I've to develop a servlet in order to access a DB on DB2 but :
- I've problems with jdbc I've setted the CLASSPATH =
$CLASSPATH:.../.../db2java.zip
And I've obtained an error about libdb2jdbc.so :
So I've added the environment variable LIBPATH and LD_LIBRARY_PATH too with
the DB2 lib;
And so now I get a new error not suitable driver with a simple access like
this:

 static {
      try {
         // register the driver with DriverManager
         // The newInstance() call is needed for the sample to work with
         // JDK 1.1.1 on OS/2, where the Class.forName() method does not
         // run the static initializer. For other JDKs, the newInstance
         // call can be omitted.
         Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
      } catch (Exception e) {
         e.printStackTrace();
      }
}

        Connection conn = null;
         try {
          conn = DriverManager.getConnection
("jdbc:db2:formdb","db2inst1","");
          }
          catch (Exception ex) {
           }

My error is :   java.sql.SQLException: No suitable driver


Can you help me?

Thank you in advance.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to