Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 51445 invoked from network); 13 Aug 2005 17:15:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Aug 2005 17:15:51 -0000 Received: (qmail 81185 invoked by uid 500); 13 Aug 2005 17:15:50 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 81155 invoked by uid 500); 13 Aug 2005 17:15:49 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 81142 invoked by uid 99); 13 Aug 2005 17:15:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 10:15:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2005 10:16:09 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E3zaL-0003r2-6p for derby-user@db.apache.org; Sat, 13 Aug 2005 19:14:17 +0200 Received: from so-7766-x0.essex.ac.uk ([155.245.120.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Aug 2005 19:14:17 +0200 Received: from karadamoglou_k by so-7766-x0.essex.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Aug 2005 19:14:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Kostas Karadamoglou Subject: Re: Problems with Derby 10.1.1 and derbyclient.jar [SQLException: No suitable driver] Date: Sat, 13 Aug 2005 18:16:31 +0100 Lines: 58 Message-ID: <42FE2AEE.5020501@yahoo.gr> References: <42FE1A03.2090103@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: so-7766-x0.essex.ac.uk User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en In-Reply-To: <42FE1A03.2090103@gmail.com> X-Antivirus: avast! (VPS 0532-6, 13/08/2005), Outbound message X-Antivirus-Status: Clean Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Sunitha, Yes I was using com.ibm.db2.jcc.DB2Driver. I did a mistake! I have an database that was being operated by Derby 10.0. What I changed was the derby.jar and derbynet.jar at the server and the derbyclient.jar at the client. However I kept the database url same. So I tried to use this "jdbc:derby:net://localhost:1527/sampleDb:user=u1;password=p1;" url scheme with the org.apache.derby.jdbc.ClientDriver driver. I quess that is my mistake. Isn't it true? thank you in advance, Kostas Sunitha Kambhampati wrote: > Kostas Karadamoglou wrote: > >> Hi all, >> >> I was using Derby 10.0 with db2cc.jar and db2_licensecc.jar in network >> mode. The driver was called com.ibm.db2.jdbcDriver. Everything was >> working fine :) >> >> But now I changed to 10.1.1. The driver jar is derbyclient.jar and the >> driver org.apache.derby.jdbc.ClientDriver. Whenever I load the driver >> at the DriverManager and try to use getConnection I get the following >> exception: >> >> java.sql.SQLException: No suitable driver >> at java.sql.DriverManager.getConnection(DriverManager.java:545) >> >> Do you know how I can solve this problem? >> >> Thank you in advance, Kostas >> >> > Actually the JCC driver is com.ibm.db2.jcc.DB2Driver. Can you check > your connection url again. > > So when using the client driver , the connection url is of the form > jdbc:derby://[:]/ [; attribute>= [;...]] > Ex , assuming server is running on localhost at port 1527. To connect > via client driver, the url would be > jdbc:derby://localhost:1527/sampleDb;user=u1;password=p1 > > To connect via JCC driver, the connection url would be > jdbc:derby:net://localhost:1527/sampleDb:user=u1;password=p1; > > > Hope this helps, if not please feel free to post again, and also include > the connection url you are using. > > Sunitha. > > >