From user-return-9563-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Wed Mar 19 06:03:29 2008 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 15701 invoked from network); 19 Mar 2008 06:03:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 06:03:29 -0000 Received: (qmail 17809 invoked by uid 500); 19 Mar 2008 06:03:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 17784 invoked by uid 500); 19 Mar 2008 06:03:21 -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 17773 invoked by uid 99); 19 Mar 2008 06:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 23:03:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of learn.koa@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 06:02:40 +0000 Received: by wa-out-1112.google.com with SMTP id j4so282959wah.1 for ; Tue, 18 Mar 2008 23:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lN0uJbQ1sLDU3f40NjTeeQ869REQQcx2cgtFPSzWj1s=; b=cW+XDOqmbih1RzziZatUA7ulj+ceNGjx1YAHB7iiKWmdQVWzowfPMaxZFHp4vAZBnKcyNsYeJCK4SLfsQsIj3D1er5c8JkbglML/0d4bN1XRos1FDhaC+KpyoVVp+dGu3qqN84FI0MElOuY24KfRyeIOoGGWRJsX1DRLH2FYbHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Bi6RBW35qCoZd6ioCy5UMRp/gusj7SFnxnJGkj/8SzWm8yf/A5Uz9j9Z6lslHgkSHjJMclFMqMNNgg6DJlBSDtR/e28E8B7OsSoX8MCCnRehQ6XcNJunyjs4EGtjdncRI4dSiKeQV0DJ2ixOQAM9oSPGMAILUMcmrVoqFF+4f1U= Received: by 10.114.149.2 with SMTP id w2mr632984wad.29.1205906571487; Tue, 18 Mar 2008 23:02:51 -0700 (PDT) Received: by 10.114.154.17 with HTTP; Tue, 18 Mar 2008 23:02:51 -0700 (PDT) Message-ID: Date: Wed, 19 Mar 2008 14:02:51 +0800 From: CG To: user@geronimo.apache.org Subject: Re: Unclear steps in tutorial "Stateless Session Bean" In-Reply-To: <14af40510803181039q5897206by9b2c899cb196544a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14af40510803180756u3449a1c0h31db2b5b386e18@mail.gmail.com> <14af40510803180809u3ad49253s9d2f0024d398218f@mail.gmail.com> <14af40510803181039q5897206by9b2c899cb196544a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have downloaded the file , and use the console to deploy it. No luck , same error. I am a total newbie , not sure any futher steps that I can try to do . Hope that you can give a futher guidance , thanks. Rgds, CG On Wed, Mar 19, 2008 at 1:39 AM, Ashish Jain wrote: > Hi CG, > I just now executed the complete tutorial and found no problems with > StatelessSessionEJB.jar. I am attaching the recently created > StatelessSessionEJB.jar. Have a look at it and compare it with the one you > have created > > Hope it helps > > Thanks > Ashish > > > > On Tue, Mar 18, 2008 at 9:09 PM, CG wrote: > > Hi Ashish, > > Thanks for your reply. > > > > I have updated the geronimo-web.xml and openejb-jar.xml, and reexport > > the archieve, and deploy using the console. > > > > However, the problem still there when I deploy StatelessSessionEJB.jar > > (ApplicationClient.war no problem) > > still the dependency problem .. > > > > need your guidance , thanks in advance. > > > > Error message: > > > > > > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > > Missing dependency: console.dbpool/jdbc%2Fuserds// > > at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) > > at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) > > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) > > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) > > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) > > ... 21 more > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 11:09 PM, Ashish Jain wrote: > > > Hi, > > > > > > Thanks for bringing this forward. The tutorial has been updated to > reflect > > > the final geronimo-web.xml and openejb-jar.xml. > > > > > > Thanks > > > Ashish > > > > > > > > > > > > On Tue, Mar 18, 2008 at 8:26 PM, Ashish Jain wrote: > > > > > > > Hi, > > > > Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the > > > application should look like this > > > > openejb-jar.xml > > > > > > > > > > > > > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" > > > xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0" > > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2" > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"> > > > > > > > > > > > > > > > > console.dbpool > > > > jdbc%2Fuserds > > > > > > > > > > > > > > > > default > > > > StatelessSessionEJB > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > > > > > I hope you have followed all the steps and created a datasource as > > > suggested by the tutorial. > > > > > > > > Ans2: geronimo-web.xml is automatically created once you have your > > > environment set up with geronimo eclipse plugin. You need not create > one. > > > > > > > > geronimo-web.xml > > > > > > > > > > > > > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" > > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"> > > > > > > > > > > > > > > > > default > > > > ApplicationClient > > > > > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > > > > > default > > > > StatelessSessionEJB > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > /ApplicationClient > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 5:55 PM, CG wrote: > > > > > > > > > Hi, > > > > > I am now trying the tutorial "Stateless Session Bean" > > > > > > > > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > > > > > > > > > And I am stuck at section "Few more configurations", where need to > > > > > configure dependencies because the steps are a bit unclear. > > > > > I try to follow but get the following error which seems like is > caused > > > > > by the dependecies configuration > > > > > Hope that somebody can help . thanks. > > > > > > > > > > [error] > > > > > Caused by: > > > org.apache.geronimo.kernel.repository.MissingDependencyException: > > > > > Missing dependency: console.dbpool/jdbc%2Fuserds// > > > > > at > > > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) > > > > > at > > > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) > > > > > at > > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) > > > > > at > > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) > > > > > at > > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) > > > > > ... 21 more > > > > > > > > > > [/error]: > > > > > > > > > > > > > > > Below are my questions: > > > > > > > > > > Question 1 : At which part of openejb-jar.xml, the following > > > > > datasource dependency should be inserted ? > > > > > > > > > > > > > > > console.dbpool > > > > > jdbc%2Fuserds > > > > > > > > > > > > > > > > > > > > This is how I do > > > > > > > > > > > > > > > > > > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" > > > > > xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0" > > > > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2" > > > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"> > > > > > > > > > > > > > > > > > > > > console.dbpool > > > > > jdbc%2Fuserds > > > > > > > > > > > > > > > > > > > > default > > > > > StatelessSessionEJB > > > > > 1.0 > > > > > car > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Question 2: There is no geronimo-web.xml(there is only web.xml) > under > > > > > WEB-INF , should I create a new one ? > > > > > > > > > > > > > > > > > > > > default > > > > > StatelessSessionEJB > > > > > 1.0 > > > > > car > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > >