Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 25500 invoked from network); 16 Apr 2008 10:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2008 10:50:56 -0000 Received: (qmail 76343 invoked by uid 500); 16 Apr 2008 10:50:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 76318 invoked by uid 500); 16 Apr 2008 10:50:55 -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 76307 invoked by uid 99); 16 Apr 2008 10:50:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 03:50:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.blevins@visi.com designates 208.42.176.212 as permitted sender) Received: from [208.42.176.212] (HELO g2host.com) (208.42.176.212) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 10:50:03 +0000 Received: from [71.105.91.112] (account dblevins@visi.com HELO [192.168.42.13]) by mailfront1.g2host.com (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 46569540 for user@geronimo.apache.org; Wed, 16 Apr 2008 05:50:19 -0500 Message-Id: From: David Blevins To: user@geronimo.apache.org In-Reply-To: <8DD0C692-AB3F-4EFC-810D-B9ABACFEC599@yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: JEE application client Date: Wed, 16 Apr 2008 03:50:18 -0700 References: <83e2fc4d0804150359n3feb90c3v607ff82f7624bca2@mail.gmail.com> <8DD0C692-AB3F-4EFC-810D-B9ABACFEC599@yahoo.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Apr 16, 2008, at 12:04 AM, David Jencks wrote: > > On Apr 15, 2008, at 5:17 PM, David Blevins wrote: > >> >> On Apr 15, 2008, at 8:14 AM, David Jencks wrote: >> >>> I don't think the ejb-link will work in this situation. I think >>> it worked in g 1.x and openejb 2.x but from some comments I think >>> I remember from david blevins I think the ejb-links only work >>> within an ear with g 2.x/openejb 3.x. >> >> They work, you just need to configure your ejb-ref with a name >> pattern in your geronimo-application-client.xml plan. >> >> >> ... >> >> ejb/Converter >> >> theIdOfYourEjbJar >> TheConverterEjbName >> >> >> > > Thanks for reminding me of the proper syntax here which as usual I > forgot :-) , but I was saying that in earlier geronimo versions, if > the ear is a (server-environment) parent of the standalone javaee > app client, an ejb-link in the app-client dd (not even geronimo > plan) will get resolved to the correct ejb in the ear, since > searches for gbeans are conducted in the set of ancestors of the > current module. Does that work in openejb3? Right, the "automatic" side of it is the part that doesn't work. I suppose that's exactly what you meant by ejb-link and I just read too fast :) -David >> >>> >>> It's also likely that the dependency you include on the ear will >>> result in the app client container attempting to start the ear >>> inside the app client container, which is probably not what you >>> want. We used to have client-environment and server-environment >>> elements so you could indicate where you wanted the dependency but >>> I'm not sure what happened to them. >>> >>> thanks >>> david jencks >>> >>> On Apr 15, 2008, at 3:59 AM, Phani Madgula wrote: >>>> Hi I am trying to deploy a JEE application client as follows. >>>> >>>> application-client.xml >>>> >>>> >>>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >>>> http://java.sun.com/xml/ns/javaee/application-client_5.xsd" >>>> version="5"> >>>> >>>> >>>> ejb/Converter >>>> Session >>>> examples.appclient.Converter >>>> >>>> >>>> >>>> >>>> geronimo-application-client.xml >>>> >>>> >>>> >>>> >>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2" >>>> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"> >>>> >>>> >>>> >>>> Converter >>>> Converter-app-client >>>> 3.0 >>>> jar >>>> >>>> >>>> >>>> >>>> Converter >>>> ConverterEAR >>>> 5.0 >>>> car >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ejb/Converter >>>> Session >>>> examples.appclient.Converter >>>> ConverterBean >>>> >>>> >>>> >>>> >>>> The above application client declares a dependency on Converter/ >>>> ConverterEAR/5.0/car where the ConverterBean is deployed. When I >>>> package the above files along with the client file and deploy on >>>> the Geronimo2.1 server, the server throws the following error. >>>> >>>> Please note that I am deploying the JEE client separately from >>>> the main EAR file. >>>> >>>> ______________________________________________________________________________________________________ >>>> C:\Geronimo-2.1\bin>deploy.bat --user system --password manager >>>> deploy C:\temp\ConverterEJBClient.jar >>>> Using GERONIMO_BASE: C:\Geronimo-2.1 >>>> Using GERONIMO_HOME: C:\Geronimo-2.1 >>>> Using GERONIMO_TMPDIR: var\temp >>>> Using JRE_HOME: C:\May-31-2007\jre >>>> Error: Unable to distribute ConverterEJBClient.jar: Cannot >>>> deploy >>>> the requested application module because no deployer is able to >>>> handle it. This can happen if you have omitted the J2EE >>>> deployment >>>> descriptor, disabled a deployer module, or if, for example, >>>> you are >>>> trying to deploy an EJB module on a minimal Geronimo server that >>>> does not have EJB support installed. >>>> (moduleFile=C:\Geronimo-2.1\var\temp\geronimo- >>>> deployer32414.tmpdir\ConverterEJBClient.jar) >>>> >>>> ______________________________________________________________________________________________________ >>>> >>>> >>>> May I know what I am missing here?? >>>> >>>> Thanks >>>> Phani B Madgula >>>> >>>> >>>> >>> >> > >