Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 25627 invoked from network); 27 Oct 2006 08:46:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 08:46:42 -0000 Received: (qmail 12780 invoked by uid 500); 27 Oct 2006 08:46:51 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 12753 invoked by uid 500); 27 Oct 2006 08:46:51 -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 12736 invoked by uid 99); 27 Oct 2006 08:46:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 01:46:50 -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; Fri, 27 Oct 2006 01:46:38 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GdNLz-0001NC-W5 for user@geronimo.apache.org; Fri, 27 Oct 2006 01:46:16 -0700 Message-ID: <7026612.post@talk.nabble.com> Date: Fri, 27 Oct 2006 01:46:15 -0700 (PDT) From: Guillaume Bilodeau To: user@geronimo.apache.org Subject: Re: Error deploying EAR because of DataSource In-Reply-To: <4541C6E9.9000604@opensource.lk> 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> <7009322.post@talk.nabble.com> <74e15baa0610260743v56797ccdo91745935ef2affde@mail.gmail.com> <7024975.post@talk.nabble.com> <9EF9FD53-8387-4CAC-BEDE-190FEA381975@yahoo.com> <7026375.post@talk.nabble.com> <4541C6E9.9000604@opensource.lk> X-Virus-Checked: Checked by ClamAV on apache.org No it's a remote Oracle database. Lasantha Ranaweera wrote: > > What is the DB you are using? Is it Derby Embedded? > > Thanks, > Lasantha Ranaweera > > Guillaume Bilodeau wrote: >> Hi David, >> >> Not sure if that's what you mean, but I deployed the datasource myself >> using >> the "Geronimo database pool wizard", not through a separate deployment >> plan. >> Is that it? >> >> Thanks, >> GB >> >> >> David Jencks wrote: >> >>> Everything you show looks ok to me, which makes me wonder if the >>> console-generated rar plan really has the connection factory named >>> AuchanPromoDS. Could you show the plan for deploying the datasource? >>> >>> thanks >>> david jencks >>> >>> On Oct 26, 2006, at 11:03 PM, Guillaume Bilodeau wrote: >>> >>> >>>> Ok let's try this again, without altering any names :) I'm using >>>> Geronimo+Tomcat 1.1.1 on Java 5. >>>> >>>> Error: >>>> >>>> Deployment failed: >>>> Unable to resolve resource reference 'jdbc/AuchanPromoDS' (Could >>>> not find >>>> resource 'AuchanPromoDS'. Perhaps it has not yet been configured, >>>> or your >>>> application does not have a dependency declared for that resource >>>> module?) >>>> >>>> "Installed J2EE connectors" screen: >>>> console.dbpool/AuchanPromoDS/1.0/rar running Stop >>>> Restart >>>> Uninstall >>>> >>>> web.xml: >>>> >>>> >>>> >>>> >>> 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 >>>> >>>> ... >>>> >>>> >>>> geronimo-web.xml: >>>> >>>> >>>> >>>> >>>> >>>> >>>> promo-war >>>> >>>> >>>> >>>> console.dbpool >>>> AuchanPromoDS >>>> >>>> >>>> >>>> >>>> /auchan-promo >>>> >>>> >>>> jdbc/AuchanPromoDS >>>> AuchanPromoDS >>>> >>>> >>>> >>>> applicationContext.xml: >>>> >>>> >>> jndi-name="java:comp/env/jdbc/AuchanPromoDS" >>>> proxy-interface="javax.sql.DataSource" >>>> lookup-on-startup="false" /> >>>> >>>> application.xml: >>>> >>>> >>>> >>> "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" >>>> "http://java.sun.com/dtd/application_1_3.dtd"> >>>> >>>> promo-ear >>>> Promo Action Management System EAR >>>> >>>> >>>> promo-web-2.0.0-SNAPSHOT.war >>>> /auchan-promo >>>> >>>> >>>> >>>> promo-server-2.0.0-SNAPSHOT.jar >>>> >>>> >>>> >>>> It seems to me that I followed what the usage screen suggests. Is >>>> this a >>>> problem with dealing with EARs? >>>> >>>> Thanks, >>>> GB >>>> >>>> >>>> On 10/26/06, Guillaume Bilodeau wrote: >>>> >>>>> 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? >>>>> >>>> Can you look in the database pool screen in the console, and select >>>> the usage link next to your database pool, and make sure that all the >>>> names in the example there match the ones in your geronimo-web.xml >>>> file? It's hard to troubleshoot from the config files if you're >>>> changing the important entries as you post them. :) >>>> >>>> Also, are you using Geronimo 1.0 or Geronimo 1.1? The XML namespaces >>>> in the geronimo-web.xml file aren't really correct for Geronimo 1.1, >>>> though it may auto-convert them. I'd try putting in the proper values >>>> (which you can get from here http://geronimo.apache.org/schemas.html). >>>> >>>> Thanks, >>>> Aaron >>>> >>>> -- >>>> View this message in context: http://www.nabble.com/Error-deploying- >>>> EAR-because-of-DataSource-tf2513035.html#a7024975 >>>> 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#a7026612 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.