Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 63652 invoked from network); 31 Mar 2008 15:45:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 15:45:15 -0000 Received: (qmail 67189 invoked by uid 500); 31 Mar 2008 15:45:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 66839 invoked by uid 500); 31 Mar 2008 15:45:12 -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 66828 invoked by uid 99); 31 Mar 2008 15:45:12 -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 08:45:12 -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.56] (HELO smtp101.prem.mail.sp1.yahoo.com) (98.136.44.56) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 31 Mar 2008 15:44:19 +0000 Received: (qmail 53098 invoked from network); 31 Mar 2008 15:44:36 -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=lHHyi1X5tuG3oO3xCHFPhWOpYlv4yyNZMYaMHUxyWzdJKgtgZBzENUxrxTO6LsMLX9ng2nP4cPziWwM2aVVjqH2bYg531UydhnvjNhYD+sjncqLzvlnDmYyYkrmOwUScJeMyzCAQ3YrXrxTPNi01ZQwaC2amGae7zMcT/85Zunc= ; Received: from unknown (HELO ?192.168.1.102?) (david_jencks@67.102.173.8 with plain) by smtp101.prem.mail.sp1.yahoo.com with SMTP; 31 Mar 2008 15:44:35 -0000 X-YMail-OSG: D5IIR30VM1mWEMIv9JZvMHeA4hjeKf6tFGiY.jBbxYHweCCepoRddkr7dxjg93DL39Qjz5NwkJCJXtCwcjU0Qg5httfKSgCvIY0HPMqvvkUi5g2J.DU- X-Yahoo-Newman-Property: ymail-3 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <16393441.post@talk.nabble.com> References: <16383336.post@talk.nabble.com> <2D6D3675-573A-4E7A-8302-BA8A44EC02D2@yahoo.com> <16385629.post@talk.nabble.com> <718C7F36-5405-484E-87A0-5D79B848157E@yahoo.com> <16393441.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0B308C79-28BC-4D6A-BE6A-ABEC3B5547B2@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Unable to resolve resource reference 'jdbc/MusicDB' (Found multiple matching resources. Try being more specific in a resource-ref mapping in your Geronimo deployment plan. Date: Mon, 31 Mar 2008 08:44:12 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org I think the problem is that you have a resource-ref in the ejb jar using jdbc/MusicDB that doesn't match anything. You have 2 choices AFAIK: 1. add an openejb-jar.xml openejb plan that contains the resource-ref/ resource-link element as in the geronimo-web.xml 2. rename either the datasource or the resource ref so that geronimo recognizes the match without additional mapping information. For instance if the Mysql-geronimo-plan.xml had jdbc/MusicDB then you could remove the resource-ref from geronimo-web.xml. The ee5 spec requires that you specify resource-refs and similar mapping info in each module, which really seems kind of silly. Hopefully in ee6 a more sensible approach will appear. hope this helps. david jencks On Mar 31, 2008, at 1:26 AM, newbie-gero wrote: > > Greetings, > > I have remove the dependencies in the geronimo-web.xml. This is the > error is > response: > Error: Unable to distribute MusicApp.ear: Unable to resolve resource > reference 'jdbc/MusicDB' (Could not auto-map to resource. Try > adding a resource-ref mapping to your Geronimo deployment plan. > > I have use 2 types of methods to connect to the database. One is > create a > database pool in the console another in the ear file. Both methods > have the > same error. > I guess it must be i did not add a resource reference in my xml. > > I try to add a resource reference of the jdbc/MusicDB in the > geronimo-application.xml but it returns an error on the resource > ref on > geronimo-application.xml file. > > Please let me know where can i put this jndi name jdbc/MusicDb... I > have put > one in the geronimo-web.xml. How do i put in the geronimo- > application.xml? > > This are the 2 files on the deployment plan: > http://www.nabble.com/file/p16393441/geronimo-web.xml geronimo-web.xml > http://www.nabble.com/file/p16393441/geronimo-application.xml > geronimo-application.xml > > Thanks for the time you have guided me. > > regards > newbie > > djencks wrote: >> >> >> On Mar 30, 2008, at 11:50 AM, newbie-gero wrote: >> >>> >>> Hi david, >>> thanks for your help and effort in helping me with Geronimo. >>> I have follow your advice and i decide to remove the database pool >>> i deploy >>> into the server which means i go into the console, click on the >>> database >>> pool and delete the database pool i have deploy into the server, >>> >>> Using the same ear file, i deploy again and i get this error: >>> >>> Error: Unable to distribute MusicApp.ear: Unable to create >>> configuration for deployment >>> >>> load of default/Music-ear_war-ic.war/1.3/car failed >>> >>> Error starting configuration gbean >>> default/Music-ear_war-ic.war/1.3/car >>> >>> Missing dependency: user/jdbcdatasource/2.0/car >>> >>> Do i need to change the xml files in the ear ? >> >> yes. The geronimo-web.xml plan includes a dependency on the database >> pool you removed, so the app won't deploy with the missing >> dependency. You need to remove the dependency from your web module >> plan. In fact, you wouldn't need to undeploy the separate database >> pool if you removed the dependency from the plan. >> >> thanks >> david jencks >> >>> >>> Thanks >>> >>> >>> >>> >>> >>> >>> djencks wrote: >>>> >>>> You have deployed the database pool twice: once standalone using >>>> the >>>> plan you've pointed to here, resulting in the module >>>> >>>> [ALL: user/jdbcdatasource/2.0/car] >>>> >>>> and once directly in the ear, as you fixed in the last problem you >>>> solved. >>>> >>>> You need to decide which of these methods you will use and use >>>> only >>>> one of them. If you include the pool setup in the ear, you only >>>> have one package to deal with, which is handy, but if you use a >>>> separate database pool it's easier to do things like switch >>>> databases >>>> without modifying your main application. Both have their >>>> advantages. >>>> >>>> thanks >>>> david jencks >>>> >>>> On Mar 30, 2008, at 8:30 AM, newbie-gero wrote: >>>> >>>>> >>>>> Hi, this is in response to the previous message i have post: >>>>> Error: >>>>> Unable to >>>>> distribute MusicApp.ear: Geronimo ear plan contains modules that >>>>> aren't in >>>>> the ear: false >>>>> >>>>> I have follow the solutions from that previous post and this is >>>>> the >>>>> new >>>>> error after implementing the solution. I can see the error solving >>>>> in this >>>>> forum is effective as from not able to find the resource jdbc/ >>>>> MusicDB to >>>>> unable to find module and finally there are too many resource for >>>>> jdbc/MusicDB. >>>>> >>>>> Currently this is the error i'm facing. i have include the the >>>>> codes u >>>>> advice into the application.xml. >>>>> >>>>> tranql-connector-ra-1.3.rar >>>>> >>>>> This is my new complile package: >>>>> http://www.nabble.com/file/p16383336/MusicApp.ear MusicApp.ear >>>>> >>>>> Previously i have add a database pool in the geronimo server. This >>>>> is how i >>>>> do it by writing a mysql-geronimo-plan.xml as below: >>>>> http://www.nabble.com/file/p16383336/mysql-geronimo-plan.xml >>>>> mysql-geronimo-plan.xml >>>>> This is how i deploy the database pool: >>>>> ./deploy.sh --user system --password manager deploy >>>>> /home/chongming/geronimo-2.1/mysql-geronimo-plan.xml >>>>> /home/chongming/geronimo-2.1/repository/org/tranql/tranql- >>>>> connector- >>>>> ra/1.3/tranql-connector-ra-1.3.rar >>>>> >>>>> This is the response from Geronimo server when i deploy the ear >>>>> file >>>>> >>>>> Error: Unable to distribute MusicApp.ear: Unable to resolve >>>>> resource >>>>> reference 'jdbc/MusicDB' (Found multiple matching resources. >>>>> Try >>>>> being more specific in a resource-ref mapping in your Geronimo >>>>> deployment plan. >>>>> >>>>> >>>>> default/Music-ear/1.3/ear?J2EEApplication=default/Music-ear/1.3/ >>>>> ear,JCAConnectionFactory=MusicDS,JCAResource=tranql-connector- >>>>> ra-1.3.rar,ResourceAdapter=tranql-connector- >>>>> ra-1.3.rar,ResourceAdapterModule=tranql-connector- >>>>> ra-1.3.rar,j2eeType=JCAManagedConnectionFactory,name=MusicDS >>>>> >>>>> >>>>> user/jdbcdatasource/2.0/car? >>>>> J2EEApplication=null,JCAConnectionFactory=MusicDS,JCAResource=user >>>>> / >>>>> jdbcdatasource/2.0/car,ResourceAdapter=user/jdbcdatasource/2.0/ >>>>> car,ResourceAdapterModule=user/jdbcdatasource/2.0/ >>>>> car,j2eeType=JCAManagedConnectionFactory,name=MusicDS >>>>> >>>>> >>>>> Search conducted in current module and dependencies: >>>>> >>>>> [ALL: user/jdbcdatasource/2.0/car] >>>>> >>>>> [ALL: org.apache.geronimo.configs/tomcat6/2.1/car] >>>>> >>>>> [ALL: default/Music-ear/1.3/ear] >>>>> >>>>> [ALL: org.apache.geronimo.configs/openjpa//car] >>>>> >>>>> [CLASSES: org.apache.geronimo.configs/openejb//car] >>>>> >>>>> [ALL: org.apache.geronimo.configs/axis//car] >>>>> >>>>> [ALL: org.apache.geronimo.configs/axis2//car] >>>>> >>>>> [ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car] >>>>> >>>>> What are the issue i need to resolve? Thanks in advance >>>>> -- >>>>> View this message in context: http://www.nabble.com/Unable-to- >>>>> resolve-resource-reference-%27jdbc-MusicDB%27-%28Found-multiple- >>>>> matching-resources.--Try-being-more-specific-in-a-resource-ref- >>>>> mapping-in-your-Geronimo-deployment-plan.- >>>>> tp16383336s134p16383336.html >>>>> Sent from the Apache Geronimo - Users mailing list archive at >>>>> Nabble.com. >>>>> >>>> >>>> >>>> >>> >>> -- >>> View this message in context: http://www.nabble.com/Unable-to- >>> resolve-resource-reference-%27jdbc-MusicDB%27-%28Found-multiple- >>> matching-resources.--Try-being-more-specific-in-a-resource-ref- >>> mapping-in-your-Geronimo-deployment-plan.- >>> tp16383336s134p16385629.html >>> Sent from the Apache Geronimo - Users mailing list archive at >>> Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Unable-to- > resolve-resource-reference-%27jdbc-MusicDB%27-%28Found-multiple- > matching-resources.--Try-being-more-specific-in-a-resource-ref- > mapping-in-your-Geronimo-deployment-plan.-tp16383336s134p16393441.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >