Connection Error 2003-07-30 - By Arul Prakasam
Back Hi,
I have a problem associated with Java-DB2. Though it is irrelevant to ask this kind of doubt in this forum. But this is the only forum I have subscribed to. Hence I am putting the question to you all. So please excuse me.
I have DB2 8.1 Client installed in win2000. I have also Java 1.3. My Connection String goes like this.
private Connection con = null; Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance(); con = DriverManager.getConnection( "jdbc:db2://14.18.2.232:50000/ibm_p630", "dbinst1","password");
I am unable to establish the connection to the server.My Db2 Server is running on Unix. I have checked the classpath, path also and I have my db2jcc.jar file present in relevant directory where my Classpath points to. My Error goes likt this..
java.lang.NoSuchMethodError : java.sql.DriverManager : method getLogWriter()Ljava/ io/PrintWriter; not found at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:224) at java.sql.DriverManager (Compiled Code) at java.sql.DriverManager (DriverManager.java:126) at JavaDB2Work.DB.GetDBConnection.connect(GetDBConnection.java:128) at JavaDB2Work.DB.CallDB.getConnection(CallDB.java:25) at JavaDB2Work.DB.CallDB.main(CallDB.java:15)
Can Anyone help me to solve this problem. I am very new to Java Programming. Thanks in Advance.
Rgds Arul Prakasam. --- DB2Team, 9th Floor, Raheja Towers MG Road, Blre-2 (See http://lre-2.ora-code.com). Ph 5597600 X:3362
DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted ,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
===================================================================Community Web Site (Core J2EE Patterns Catalog - Online Version): http://java.sun.com/blueprints/corej2eepatterns Getting Started (Beta Version): http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Get the book: http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|