Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 77845 invoked from network); 26 Oct 2006 11:29:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 11:29:02 -0000 Received: (qmail 5132 invoked by uid 500); 26 Oct 2006 11:29:10 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 5104 invoked by uid 500); 26 Oct 2006 11:29:10 -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 5093 invoked by uid 99); 26 Oct 2006 11:29:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 04:29:10 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 04:28:57 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gd3PW-0005qq-Hr for user@geronimo.apache.org; Thu, 26 Oct 2006 04:28:34 -0700 Message-ID: <7009322.post@talk.nabble.com> Date: Thu, 26 Oct 2006 04:28:34 -0700 (PDT) From: Guillaume Bilodeau To: user@geronimo.apache.org Subject: Re: Error deploying EAR because of DataSource In-Reply-To: <22d56c4d0610260419i77055129y7b1b78e5240c92df@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gbilodeau@yahoo.com References: <7008354.post@talk.nabble.com> <22d56c4d0610260312q58cdb045xd536edd0f5734936@mail.gmail.com> <7008735.post@talk.nabble.com> <22d56c4d0610260419i77055129y7b1b78e5240c92df@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes actually that was a mistake in my post, I forgot to remove all references to my current client :) All names are correct in my code, all of them being jdbc/PromoDS. Any other idea? Vamsavardhana Reddy-2 wrote: > > One problem I can see straight away is that your lookup code is not using > the res-ref-name from web.xml and geronimo-web.xml is not linking the > res-ref-name in web.xml with the actual resource. To overcome this, > change > "jdbc/AuchanPromoDS" in web.xml to "jdbc/PromoDS" . Regarding the > resource-link, if you have used "jdbc/PromoDS" as the pool name, change > the > resource-link to "jdbc/PromoDS". > > Vamsi > On 10/26/06, Guillaume Bilodeau wrote: >> >> >> Here's the relevant web.xml part: >> >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >> version="2.4"> >> ... >> >> jdbc/AuchanPromoDS >> javax.sql.DataSource >> Container >> Shareable >> >> ... >> >> >> The lookup code is done by the Spring framework through the following >> tag: >> >> > jndi-name="java:comp/env/jdbc/PromoDS" >> proxy-interface="javax.sql.DataSource" >> lookup-on-startup="false" /> >> >> But it doesn't even get to the lookup part :) >> >> Thanks! >> GB >> >> >> >> Vamsavardhana Reddy-2 wrote: >> > >> > Please post your web.xml and also the lookup code. >> > >> > Vamsi >> > >> > On 10/26/06, Guillaume Bilodeau wrote: >> >> >> >> >> >> Hi guys, >> >> >> >> This is a different problem than the one I posted back in July, >> hopefully >> >> this one will be easier to solve :) >> >> >> >> I'm back with my EAR, containing an EJB module (JAR), a web >> application >> >> (WAR) and their relevant dependencies in its root. The EAR contains >> the >> >> following application.xml file: >> >> >> >> >> >> > >> "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" >> >> "http://java.sun.com/dtd/application_1_3.dtd"> >> >> >> >> promo-ear >> >> >> >> >> >> promo-web-2.0.0-SNAPSHOT.war >> >> /promo >> >> >> >> >> >> >> >> promo-server-2.0.0-SNAPSHOT.jar >> >> >> >> >> >> >> >> The WAR contains a web.xml with a reference to a data source and the >> >> following geronimo-web.xml file: >> >> >> >> >> >> >> >> > >> xmlns:naming="http://geronimo.apache.org/xml/ns/naming"> >> >> >> >> >> >> promo-war >> >> >> >> >> >> >> >> console.dbpool >> >> PromoDS >> >> >> >> >> >> >> >> >> >> /promo >> >> >> >> >> >> jdbc/PromoDS >> >> PromoDS >> >> >> >> >> >> >> >> I have already configured my database pool with the same name, it's up >> >> and >> >> running and correctly listed in the J2EE connectors. >> >> >> >> When I try to deploy this EAR, I get the following error: >> >> >> >> Unable to resolve resource reference 'jdbc/PromoDS' (Could not find >> >> resource >> >> 'PromoDS'. Perhaps it has not yet been configured, or your >> application >> >> does >> >> not have a dependency declared for that resource module?) >> >> org.apache.geronimo.common.DeploymentException: Unable to resolve >> >> resource >> >> reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'. Perhaps >> it >> >> has >> >> not yet been configured, or your application does not have a >> dependency >> >> declared for that resource module?) >> >> >> >> Any idea what the problem here? >> >> >> >> Thanks a lot! >> >> GB >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354 >> >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008735 >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7009322 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.