From user-return-765-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Wed Aug 31 18:46:22 2005 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 6425 invoked from network); 31 Aug 2005 18:46:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2005 18:46:21 -0000 Received: (qmail 37678 invoked by uid 500); 31 Aug 2005 18:46:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 37657 invoked by uid 500); 31 Aug 2005 18:46:17 -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 37603 invoked by uid 99); 31 Aug 2005 18:46:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 11:46:17 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of imm@nodo50.org designates 194.109.209.218 as permitted sender) Received: from [194.109.209.218] (HELO revolware.nodo50.org) (194.109.209.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 11:46:30 -0700 Received: from [85.84.17.174] (eu85-84-17-174.clientes.euskaltel.es [85.84.17.174]) by revolware.nodo50.org (Postfix) with ESMTP id CC7E5273E8 for ; Wed, 31 Aug 2005 20:46:07 +0200 (CEST) Message-ID: <4315FAF5.1080005@nodo50.org> Date: Wed, 31 Aug 2005 20:46:13 +0200 From: =?ISO-8859-1?Q?I=F1igo?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: es-es, es MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: deploy a client application References: <43149F60.3010204@nodo50.org> <4314C58F.8000605@nodo50.org> <43151E8E.10306@apache.org> <4315BF9B.6020007@nodo50.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, now I get this error. The application starts running and it is accesing the pool connection deployed in Geronimo. C:\geronimo-1.0-M4>java -jar bin\client.jar ejemplo/musica 20:42:58,862 INFO [LocalConfigStore:config-store] Loaded Configuration geronimo .config:name="ejemplo/musica" 20:42:58,892 INFO [LocalConfigStore:config-store] Loaded Configuration geronimo .config:name="org/apache/geronimo/Client" 20:42:59,212 INFO [Configuration] Started configuration org/apache/geronimo/Cli ent 20:42:59,863 INFO [Configuration] Started configuration ejemplo/musica 20:43:00,244 INFO [CommandLine] Server startup completed Obtiene bien los grupos: 2 Tamanyo lista: 2 20:43:04,840 INFO [CommandLine] Server shutdown begun 20:43:04,860 INFO [Configuration] Stopping configuration ejemplo/musica 20:43:04,910 ERROR [GBeanInstance] GBeanInstance should already be stopped befor e die() is called: objectName=geronimo.client:name=tranql/rars/tranql-connector- 1.0-20050716.rar,J2EEServer=client,J2EEApplication=client-application,j2eeType=R esourceAdapterModule state=starting 20:43:04,910 ERROR [GBeanInstance] GBeanInstance should already be stopped befor e die() is called: objectName=geronimo.client:JCAResource=tranql/rars/tranql-con nector-1.0-20050716.rar,name=MySQL,J2EEServer=client,J2EEApplication=client-appl ication,j2eeType=JCAConnectionFactory state=starting 20:43:05,431 INFO [Configuration] Stopping configuration org/apache/geronimo/Cl ient 20:43:05,511 INFO [Configuration] Stopping configuration org/apache/geronimo/Cl ientSystem 20:43:05,521 INFO [BasicKernel] Starting kernel shutdown 20:43:05,521 INFO [BasicKernel] Kernel shutdown complete 20:43:05,521 INFO [CommandLine] Client shutdown completed David Jencks escribió: > The immediate cause of the problem is that either you should look up : > >> DataSource ds = (DataSource)ctx.lookup("java:comp/env/MySQL"); > > > or your resource-ref in application-client.xml should look like: > >> >> jdbc/DataSource >> javax.sql.DataSource >> Container >> > > > After that, since you don't show your entire plan I don't know what > else you have or are missing. However, you need to include an > "resource" element in the deployment plan that includes the entire > connector plan for the datasource. If the connection-factory-name > elements is jdbc/DataSource (or MySQL, depending on your choice > above), you won't need a resource-ref element in the client plan. > > thanks > david jencks > > >