Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 84718 invoked from network); 18 Mar 2008 15:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 15:09:52 -0000 Received: (qmail 12323 invoked by uid 500); 18 Mar 2008 15:09:47 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 12302 invoked by uid 500); 18 Mar 2008 15:09:47 -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 12291 invoked by uid 99); 18 Mar 2008 15:09:47 -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 08:09:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ashjain2@gmail.com designates 72.14.204.229 as permitted sender) Received: from [72.14.204.229] (HELO qb-out-0506.google.com) (72.14.204.229) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 15:09:06 +0000 Received: by qb-out-0506.google.com with SMTP id d8so5382814qbc.3 for ; Tue, 18 Mar 2008 08:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ydhCXDLY8TImK/MtXUck78Jl3MM1dQcWv5Ip+J9enDY=; b=xxV9Vd1AqdvziV83dIBC8C+4oX9yCfPrIV/qV3tHpZ5bu0xtWDjPua/E++ROJ+xI0/GVqGyomuhcOhDIAXUSHKSTi5G/n5UEJszwY1im0IfRYmGAuxrTpTOgcA5NN82NH52Leb78UGcnbncn8hmpYyh4Glc2usywCeaJbhCnLw0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=X2EPK4yFYfYvFg9xfBpfXsCN4obvnnXznnYf8P3ZySHD0hudXiPdfeWhN1Gp9XOW7aXHVBeUOMjBy0wp5LLRa177EBS+PIbOSjnDBOR3ZpTg1selJUKAiFQpXQQbbo0e46rFcBzMQT7U3BdTV64Gsof1vIEzKhZGgV1QXLb2ijE= Received: by 10.142.139.19 with SMTP id m19mr1054664wfd.7.1205852956449; Tue, 18 Mar 2008 08:09:16 -0700 (PDT) Received: by 10.142.158.2 with HTTP; Tue, 18 Mar 2008 08:09:16 -0700 (PDT) Message-ID: <14af40510803180809u3ad49253s9d2f0024d398218f@mail.gmail.com> Date: Tue, 18 Mar 2008 20:39:16 +0530 From: "Ashish Jain" To: user@geronimo.apache.org Subject: Re: Unclear steps in tutorial "Stateless Session Bean" In-Reply-To: <14af40510803180756u3449a1c0h31db2b5b386e18@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13196_32406947.1205852956442" References: <14af40510803180756u3449a1c0h31db2b5b386e18@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13196_32406947.1205852956442 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. > > > > ------=_Part_13196_32406947.1205852956442 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <ashjain2@gmail.com> wrote:
Hi,
Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the application should look like this
openejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.2" 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">
  <sys:environment>
  <sys:dependencies>
            <sys:dependency>
                <sys:groupId>console.dbpool</sys:groupId>
                <sys:artifactId>jdbc%2Fuserds</sys:artifactId>
            </sys:dependency>       
</sys:dependencies>
    <sys:moduleId>
      <sys:groupId>default</sys:groupId>
      <sys:artifactId>StatelessSessionEJB</sys:artifactId>
      <sys:version>1.0</sys:version>
      <sys:type>car</sys:type>
    </sys:moduleId>
    </sys:environment>
  <enterprise-beans/>
</openejb-jar>
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

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" 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">
  <sys:environment>

    <sys:moduleId>
      <sys:groupId>default</sys:groupId>
      <sys:artifactId>ApplicationClient</sys:artifactId>

      <sys:version>1.0</sys:version>
      <sys:type>car</sys:type>
    </sys:moduleId>
    <sys:dependencies>
       <sys:dependency>
            <sys:groupId>default</sys:groupId>
              <sys:artifactId>StatelessSessionEJB</sys:artifactId>
              <sys:version>1.0</sys:version>
              <sys:type>car</sys:type>
       </sys:dependency>       
</sys:dependencies>
  </sys:environment>
  <context-root>/ApplicationClient</context-root>
</web-app>


On Tue, Mar 18, 2008 at 5:55 PM, CG <learn.koa@gmail.com> 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 ?
<sys:dependencies>
           <sys:dependency>
               <sys:groupId>console.dbpool</sys:groupId>
               <sys:artifactId>jdbc%2Fuserds</sys:artifactId>
           </sys:dependency>
</sys:dependencies>

This is how I do

<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.2"
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">
 <sys:environment>
     <sys:dependencies>
       <sys:dependency>
         <sys:groupId>console.dbpool</sys:groupId>
         <sys:artifactId>jdbc%2Fuserds</sys:artifactId>
       </sys:dependency>
         </sys:dependencies>
   <sys:moduleId>
     <sys:groupId>default</sys:groupId>
     <sys:artifactId>StatelessSessionEJB</sys:artifactId>
     <sys:version>1.0</sys:version>
     <sys:type>car</sys:type>
   </sys:moduleId>
 </sys:environment>
 <enterprise-beans/>
</openejb-jar>

Question 2:  There is no geronimo-web.xml(there is only web.xml) under
WEB-INF , should I create a new one ?

<sys:dependencies>
      <sys:dependency>
           <sys:groupId>default</sys:groupId>
               <sys:artifactId>StatelessSessionEJB</sys:artifactId>
               <sys:version>1.0</sys:version>
               <sys:type>car</sys:type>
      </sys:dependency>
</sys:dependencies>



Thanks.


------=_Part_13196_32406947.1205852956442--