Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 73264 invoked from network); 12 Apr 2005 23:30:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2005 23:30:20 -0000 Received: (qmail 61543 invoked by uid 500); 12 Apr 2005 23:30:18 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 61523 invoked by uid 500); 12 Apr 2005 23:30:18 -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 Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 61510 invoked by uid 99); 12 Apr 2005 23:30:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail11.syd.optusnet.com.au (HELO mail11.syd.optusnet.com.au) (211.29.132.192) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Apr 2005 16:30:14 -0700 Received: from [10.201.52.29] (melfw1124.accenture.com [170.252.136.1]) (authenticated bits=0) by mail11.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j3CNU74V025284 for ; Wed, 13 Apr 2005 09:30:10 +1000 Message-ID: <425C594C.4090404@optusnet.com.au> Date: Wed, 13 Apr 2005 09:27:08 +1000 From: Gianny Damour User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: Deployment fail at persistent EJB References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Katia, The last version of Geronimo, built from source, supports CMP. Also, could you please provide the error message that you get during the deployment process? I comment your openejb-jar.xml deployment descriptor further down. Thanks, Gianny On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote: > Hello again David!!!! > > The problems still go on xD. The openejb-jar.xml is wrong, and I cant > find any reference of an xml file to look at and compare. I know im > doing somethig really bad :-). > > Here is the openejb-jar.xml of the ejb-jar.xml. Can you help me again > please? thank you!!!!! > > Katia > > > > > configId="GeronimoTestEJB" > parentId="org/apache/geronimo/Server"> > > > null > org/apache/geronimo/DefaultDatabase > DefaultDatasource > > OK. > > > CabinEJB > CabinEJB > You do not need to specify a jndi-name. This construct is only used to specify a global JNDI name, which you do not need in your case. You need to specifiy a mapping table for this CMP. This is something like: MyTableName Furthermore, you also need to specify a mapping for each of the persistent fields identified in your ejb-jar.xml DD. This is something like: id col_id > > jdbc/titanDB > > > This is now enough information. You need to map a resource reference to this resource name. This is something like: null org/apache/geronimo/DefaultDatabase DefaultDatasource Such a configuration references the default datasource of Geronimo, which is by the way the datasource used under the cover by the CMP engine to interact with the database. Please have a look to this file: modules/naming-builder/src/schema/geronimo-naming.xsd and especially to the resource-refType complex type to understand how mapping works. > > > > ShipEJB > ShipEJB > Same as above. > > jdbc/titanDB > Same as above. > > > > > > TravelAgentEJB > TravelAgentEJB > > > > >