Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 57100 invoked from network); 31 Mar 2008 15:33:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 15:33:09 -0000 Received: (qmail 48195 invoked by uid 500); 31 Mar 2008 15:33:08 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 48011 invoked by uid 500); 31 Mar 2008 15:33:07 -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 48000 invoked by uid 99); 31 Mar 2008 15:33:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 08:33:07 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 15:32:26 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JgLzy-0006S7-9S for user@geronimo.apache.org; Mon, 31 Mar 2008 08:32:38 -0700 Message-ID: <16396504.post@talk.nabble.com> Date: Mon, 31 Mar 2008 08:32:38 -0700 (PDT) From: luoluo To: user@geronimo.apache.org Subject: Persistence unit deploy error in 2.1 but works in 2.02 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: luowp88@hotmail.com X-Virus-Checked: Checked by ClamAV on apache.org 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? 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.