Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 79742 invoked from network); 31 Mar 2008 16:14:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 16:14:37 -0000 Received: (qmail 15457 invoked by uid 500); 31 Mar 2008 16:14:30 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 15429 invoked by uid 500); 31 Mar 2008 16:14:30 -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 15418 invoked by uid 99); 31 Mar 2008 16:14:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 09:14:30 -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 (nike.apache.org: local policy) Received: from [98.136.44.58] (HELO smtp103.prem.mail.sp1.yahoo.com) (98.136.44.58) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 31 Mar 2008 16:13:37 +0000 Received: (qmail 45846 invoked from network); 31 Mar 2008 16:13:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=Z3s4vN6wPRIGEcUo3sVfY9YcqFSXlrwtj7/6hUFLiScwtHEaQJb5zSdyimlQjtUgc7eUHAb88myC8idqKEnjiyM26vZHoso0EXTUJQeQfQ3t0XRjCoDsfj/WLPfBLM7ESBfWXQRTQtAo6sM+aH7jGUetmUar0SQAxjwLVaXdTKM= ; Received: from unknown (HELO ?192.168.1.102?) (david_jencks@67.102.173.8 with plain) by smtp103.prem.mail.sp1.yahoo.com with SMTP; 31 Mar 2008 16:13:56 -0000 X-YMail-OSG: PlJwGqAVM1lsd5xE6PgQWWnotqlhSL64TGNLbjiFqCOtBQDRviChsIO10tiLPJ6dyeNHzZe7uAxRkndLPiZ8N58bX0Ue0qLfsxPMqh8L75wFMxchMSw- X-Yahoo-Newman-Property: ymail-3 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <16396504.post@talk.nabble.com> References: <16396504.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <25252F98-CE3E-4923-8A6A-1D8C61F7958C@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Persistence unit deploy error in 2.1 but works in 2.02 Date: Mon, 31 Mar 2008 09:13:33 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 31, 2008, at 8:32 AM, luoluo wrote: > > Hi, > > I have an application using JPA with hibernate. I changed the > persistence > provider to hibernate and trying to using db-pools. It works > perfectly fine > in Geronimo 2.02. But when I tried to deploy it to Geronimo 2.1. It > throw > out an exception with can not find JNDI entry for the data source when > Geronimo try to start the application. > > I found the different between 2.0.2 and 2.1. In 2.0.2, the entity > manager > was initialized when first time db-access. At that time, the data > source is > already be registered in JNDI as /comp/env/jdbc/...DS. > > In 2.1, Geronimo try to initialize the entity manager when starting > the > application. The sequence is wrong. It tried to find the data > source before > the reference in Web.xml been registered. So the JNDI entry not find > exception was thrown out. > > Is that a bug of Geronimo 2.1? Is there any way to work around this > issue in > 2.1? I'm a little confused about how you are using Hibernate. Geronimo jpa support does not use jndi at all. How are you getting Hibernate to use jndi rather than the configured jta-datasource and non-jta- datasource specified in persistence.xml? thanks david jencks > > > Thanks! > > Bill > > -- > View this message in context: http://www.nabble.com/Persistence- > unit-deploy-error-in-2.1-but-works-in-2.02- > tp16396504s134p16396504.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >