Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 49927 invoked from network); 20 Mar 2006 18:54:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2006 18:54:43 -0000 Received: (qmail 52420 invoked by uid 500); 20 Mar 2006 18:54:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 52374 invoked by uid 500); 20 Mar 2006 18:54:41 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 52365 invoked by uid 99); 20 Mar 2006 18:54:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 10:54:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.31] (HELO brmea-mail-1.sun.com) (192.18.98.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 10:54:40 -0800 Received: from phys-gadget-1 ([129.156.85.171]) by brmea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k2KIsJSD002094 for ; Mon, 20 Mar 2006 11:54:20 -0700 (MST) Received: from conversion-daemon.gadget-mail1.uk.sun.com by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IWF00601WDSJ3@gadget-mail1.uk.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Mon, 20 Mar 2006 18:54:19 +0000 (GMT) Received: from [129.150.112.203] (vpn-129-150-112-203.Holland.Sun.COM [129.150.112.203]) by gadget-mail1.uk.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0IWF00EB6WIGYH@gadget-mail1.uk.sun.com> for derby-dev@db.apache.org; Mon, 20 Mar 2006 18:54:19 +0000 (GMT) Date: Mon, 20 Mar 2006 19:54:14 +0100 From: Kristian Waagan Subject: Re: [jira] Commented: (DERBY-993) junitTests cannot be run with J2ME In-reply-to: <1127225162.1142878559803.JavaMail.jira@ajax> To: derby-dev@db.apache.org Message-id: <441EFA56.8080405@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.4 (Windows/20050908) References: <1127225162.1142878559803.JavaMail.jira@ajax> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Myrna van Lunteren (JIRA) wrote: > [ http://issues.apache.org/jira/browse/DERBY-993?page=comments#action_12371118 ] > > Myrna van Lunteren commented on DERBY-993: > ------------------------------------------ > > The patch dated 3/20 gives the following with wctme5.7_foundation in test SURTest.junit: > ------------ > java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver manager > at org.apache.derby.jdbc.EmbeddedSimpleDataSource.findDriver(EmbeddedSimpleDataSource.java:434) > at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:405) > at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:372) > at org.apache.derbyTesting.functionTests.util.BaseJDBCTestCase.getConnection(BaseJDBCTestCase.java:84) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.getNewConnection(SURDataModelSetup.java:174) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.setUp(SURDataModelSetup.java:140) > at junit.extensions.TestSetup$1.protect(TestSetup.java:18) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.textui.TestRunner.doRun(TestRunner.java:116) > at junit.textui.TestRunner.start(TestRunner.java:172) > at junit.textui.TestRunner.main(TestRunner.java:138) > ----------------------- > let me see what I can do. > Also, it doesn't have the fix to TestUtil (which I erroneously added to DERBY-949), so I'll add that as well. > I just had a quick look on the patch dated 20th of March. I don't see what the variable 'classname' is used for. I only see that it is assigned, but never used. Also, is the value correct? It is: org.apache.derby.jdbc.Embedded.Simple.DataSource Should it be: org.apache.derby.jdbc.EmbeddedSimpleDataSource ? -- Kristian > > >> junitTests cannot be run with J2ME >> ---------------------------------- >> >> Key: DERBY-993 >> URL: http://issues.apache.org/jira/browse/DERBY-993 >> Project: Derby >> Type: Test >> Components: Test >> Versions: 10.2.0.0 >> Environment: using J2ME jvm >> Reporter: Myrna van Lunteren >> Assignee: Myrna van Lunteren >> Priority: Minor >> Attachments: DERBY-993-skipwfoundation.diff, DERBY-993-skipwfoundation.stat, DERBY-993_2006_03_18.diff, DERBY-993_2006_03_20.diff >> >> The test suite junitTests/LangSuite, and the .junit tests jdbcapi/SURTest.java and jdbcapi/SURQueryMixTest.java fail with J2ME, because it uses java.sql.Driver. >> There should be a way to use java.sql.DataSource instead of the Driver mechanism. >> > >