Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 73323 invoked from network); 14 Oct 2007 14:54:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2007 14:54:45 -0000 Received: (qmail 65471 invoked by uid 500); 14 Oct 2007 14:54:31 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 65437 invoked by uid 500); 14 Oct 2007 14:54:31 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 65426 invoked by uid 99); 14 Oct 2007 14:54:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 07:54:31 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.147.95.93] (HELO smtp130.plus.mail.sp1.yahoo.com) (69.147.95.93) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 14 Oct 2007 14:54:32 +0000 Received: (qmail 12830 invoked from network); 14 Oct 2007 14:53:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=qX3ovNtbmWTWSnG7lRWeLBIF/C4BYPi6nNHZVS1coKSwAbU406i0PlCjOO7JPtO3TTrCEoL9XeQO5TilIPUFxt2DuE7ACQdpEpDgCuB2d/LcMkPq/4E7hjhtFhX/VezSxu5P3xtx8D9JY4ZdIUGwunQn/ee8NbcFi/ba9J+Q+gg= ; Received: from unknown (HELO ?192.168.1.101?) (david_jencks@67.102.173.8 with plain) by smtp130.plus.mail.sp1.yahoo.com with SMTP; 14 Oct 2007 14:53:39 -0000 X-YMail-OSG: 3JrBeyYVM1nSHcea7zurjs8q3gsJMB06Xh3NfSWMGvfFu4kLCFIO42aJ2nho6o6AZcmis8YHkPAlPiCpwQ.kVIFBtjrH5yyGyVklCfKDQHj4oawh5Ach4PDIrOGA Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <13198856.post@talk.nabble.com> References: <13198856.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: OpenJPA with Connection Pool Connection Date: Sun, 14 Oct 2007 07:53:54 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org persisentence units don't use the local jndi namespace. So I think you want to change jdbc/MyDataSource to hbPriceSpy thanks david jencks On Oct 14, 2007, at 5:57 AM, BenLeino wrote: > > Hi there, > > I am using WASCE 2.0 with OpenJPA and the build-in connection pool. > I can > sucessfully use one of the connection pools database via: > > DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/ > MyDataSource"); > > But I just can't get OpenJPA to run. Everytime i deploy ma > application, i > get the following error: > > [...] > Unable to resolve reference "JtaDataSourceWrapper" in gbean > default/MegaTestWAR/5.7/car? > J2EEApplication=null,PersistenceUnitModule=WEB-INF/ > classes/,WebModule=default/MegaTestWAR/5.7/ > car,j2eeType=PersistenceUnit,name=MegaTestWAR > to a gbean matching the pattern > [?name=jdbc/ > MyDataSource#org.apache.geronimo.connector.outbound.ConnectionFactoryS > ource]due > to: No matches for referencePatterns: > [?name=jdbc/ > MyDataSource#org.apache.geronimo.connector.outbound.ConnectionFactoryS > ource] > org.apache.geronimo.common.DeploymentException: Unable to resolve > reference "JtaDataSourceWrapper" in gbean > default/MegaTestWAR/5.7/car? > J2EEApplication=null,PersistenceUnitModule=WEB-INF/ > classes/,WebModule=default/MegaTestWAR/5.7/ > car,j2eeType=PersistenceUnit,name=MegaTestWAR > to a gbean matching the pattern > [?name=jdbc/ > MyDataSource#org.apache.geronimo.connector.outbound.ConnectionFactoryS > ource]due > to: No matches for referencePatterns: > [?name=jdbc/ > MyDataSource#org.apache.geronimo.connector.outbound.ConnectionFactoryS > ource] > [...] > > persistence.xml: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> > > DataSource zum testen > > org.apache.openjpa.persistence.PersistenceProviderImpl provider> > jdbc/MyDataSource > > > > web.xml: > [...] > > jdbc/MyDataSource > javax.sql.DataSource > Container > Shareable > > [...] > > geronimo-web.xml: > [...] > > > org.apache.geronimo.configs > openjpa > 2.0.1 > car > > > console.dbpool > hbPriceSpy > 1.0 > rar > > > > /Test > > jdbc/MyDataSource > hbPriceSpy > > [...] > > Thanks a lot in advance. I am currently doing research on this > problem since > a week, and I just can not figure it out. > > Best regards, > BenLeino > -- > View this message in context: http://www.nabble.com/OpenJPA-with- > Connection-Pool-Connection-tf4621682s134.html#a13198856 > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >