Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 7023 invoked from network); 18 Feb 2005 20:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Feb 2005 20:51:05 -0000 Received: (qmail 52843 invoked by uid 500); 18 Feb 2005 20:51:05 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 52827 invoked by uid 99); 18 Feb 2005 20:51:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from brmea-mail-4.Sun.COM (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Feb 2005 12:51:04 -0800 Received: from phys-mpk-1 ([129.146.11.81]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j1IKp2Kw028083 for ; Fri, 18 Feb 2005 13:51:02 -0700 (MST) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IC400B01KGEWX@mpk-mail1.sfbay.sun.com> (original mail from Michelle.Caisse@Sun.COM) for jdo-dev@db.apache.org; Fri, 18 Feb 2005 12:51:02 -0800 (PST) Received: from [129.150.26.63] (vpn-129-150-26-63.SFBay.Sun.COM [129.150.26.63]) by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IC40069RKL2YI@mpk-mail1.sfbay.sun.com> for jdo-dev@db.apache.org; Fri, 18 Feb 2005 12:51:02 -0800 (PST) Date: Fri, 18 Feb 2005 12:52:03 -0800 From: Michelle Caisse Subject: Re: Steps to running the TCK against jpox & derby In-reply-to: <421653E4.7070802@sun.com> To: jdo-dev@db.apache.org Message-id: <42165573.1040405@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 References: <421653E4.7070802@sun.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Michelle Caisse wrote: > Hi, Michael and others, > > Here's what I've done to get jpox and derby to run against the TCK, to > the point where they need to find tables in the database. > > 1. Put jpox-1.1.0-beta-1.jar in tck11/iut_jars. and put derby.jar and derbytools.jar in tck11/iut_jars > 2. Put log4j-1.2.9.jar in tck11/iut_jars. (jpox needed this.) > 3 Edit tck11/project.properties: > # iut > iut.properties = ${basedir}/jpox.properties > 4. Create jpox.properties: > javax.jdo.PersistenceManagerFactoryClass=org.jpox.PersistenceManagerFactoryImpl > > #javax.jdo.PersistenceManagerFactoryClass=org.apache.jdo.impl.fostore.FOStorePMF > > org.apache.jdo.ConnectionCreate=true > javax.jdo.option.ConnectionDriverName=org.apache.derby.jdbc.EmbeddedDriver > > javax.jdo.option.ConnectionURL=jdbc:derby:jdotckdb > #javax.jdo.option.ConnectionURL=fostore:database/fostore > javax.jdo.option.ConnectionUserName=tckuser > javax.jdo.option.ConnectionPassword=tckuser > javax.jdo.option.Optimistic=false > javax.jdo.option.RetainValues=false > javax.jdo.option.RestoreValues=false > 5. In the classpath section of tck11/maven.xml, place these lines > BEFORE the JDO jar file lines: > > > else [java] 1) > testGetObjectId(org.apache.jdo.tck.api.jdohelper.GetObjectId)javax.jdo.JDOFatalUserException: > JDO 2.0 capabilities cannot be accessed! Please make sure that you do > not have a JDO 1.0 jar in front of the JDO 2 classes in your CLASSPATH. > [java] at > org.jpox.AbstractPersistenceManagerFactory.(AbstractPersistenceManagerFactory.java:113) > > 6. Manually create a derby database. I'm using iut_jars as the derby > system directory, meaning that it looks there for databases and > derby.properties. I wrote some scripts to create the db. The > procedure for deleting a derby database is an OS delete operation on > the directory and files. > 7. Add the following line to maven.xml in the name="runtck.single" ...> section: > value="${basedir}/iut_jars"/> > > -- Michelle >