Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 34045 invoked from network); 26 Sep 2006 10:23:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 10:23:31 -0000 Received: (qmail 53012 invoked by uid 500); 26 Sep 2006 10:23:28 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 52991 invoked by uid 500); 26 Sep 2006 10:23:28 -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 52979 invoked by uid 99); 26 Sep 2006 10:23:27 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 03:23:27 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lasantha@opensource.lk; spf=permerror X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=HTML_MESSAGE Received-SPF: error (idunn.apache.osuosl.org: domain opensource.lk from 209.68.5.15 cause and error) Received: from [209.68.5.15] ([209.68.5.15:1961] helo=relay01.pair.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id AD/31-07011-D9FF8154 for ; Tue, 26 Sep 2006 03:23:25 -0700 Received: (qmail 6230 invoked from network); 26 Sep 2006 10:23:20 -0000 Received: from unknown (HELO ?192.168.1.227?) (unknown) by unknown with SMTP; 26 Sep 2006 10:23:20 -0000 X-pair-Authenticated: 222.165.180.106 Message-ID: <4518FF8A.2050307@opensource.lk> Date: Tue, 26 Sep 2006 15:53:06 +0530 From: Lasantha Ranaweera User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: Refering an EJB deployed in 2nd EAR References: <785A212E11918F449D1318C61B7A9B0E04635AF4@cs-mailsvr.Virtusa.com> In-Reply-To: <785A212E11918F449D1318C61B7A9B0E04635AF4@cs-mailsvr.Virtusa.com> Content-Type: multipart/mixed; boundary="------------070602030007030609080607" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------070602030007030609080607 Content-Type: multipart/alternative; boundary="------------050109020708040408090605" --------------050109020708040408090605 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Siraj, Yes it is the problem. When I add the dependencies to the geronimo-application.xml I can deploy two EARs without any error. Please find the attached geronimo-application.xml of helloworld1.ear. Regards, Lasantha Ranaweera Siraj Mohamed wrote: > Hi, > > I am attaching two ears. > > > Thanks, > Siraj > > -----Original Message----- > From: Lasantha Ranaweera [mailto:lasantha@opensource.lk] > Sent: Tuesday, September 26, 2006 3:17 PM > To: user@geronimo.apache.org > Subject: Re: Refering an EJB deployed in 2nd EAR > > Hi, > > I think in your first openejb-jar.xml (HelloWorld1) you haven't mention > the dependency of HelloWorld2. Post your two ears if you can't find the > problem still. > > Regards, > Lasantha Ranaweera > > Siraj Mohamed wrote: > >> Hi, >> >> >> >> I tried it out in G 1.1.1 version but it fails. I have two EAR >> applications (say helloworld1.ear and helloworld2.ear) and I refer >> hellword2 ejb in helloworld1 ejb. >> >> >> >> This is helloworld1 ejb's openejb-jar.xml looks like. >> >> >> >> >> >> >> >> >> >> > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >> >> >> >> >> default >> >> >> HelloBean1 >> >> >> 1.0 >> >> >> > car > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> HelloBean1 >> >> ejb/helloworld1 >> >> >> >> >> >> ejb/helloworld2 >> >> HelloBean2 >> >> >> >> >> >> >> >> >> >> >> >> >> >> And also this is the segment of the ejb-jar.xml of helloworld1 ejb. >> >> >> >> >> >> >> >> no description >> >> HelloBean1 >> >> HelloBean1 >> >> ejb.helloworld1.HelloHome1 >> >> ejb.helloworld1.Hello1 >> >> ejb.helloworld1.HelloBean1 >> >> Stateless >> >> Container >> >> >> >> >> >> ejb/helloworld2 >> >> Session >> >> ejb.helloworld2.HelloHome2 >> >> ejb.helloworld2.Hello2 >> >> >> >> >> >> >> >> >> >> >> >> >> >> This is helloworld2 ejb's openejb-jar.xml looks like. >> >> >> >> >> >> >> >> >> >> > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >> >> >> >> >> default >> >> >> HelloBean2 >> >> >> 1.0 >> >> >> > car > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> HelloBean2 >> >> ejb/helloworld2 >> >> >> >> >> >> >> >> >> >> I am getting following error when I tried to deploy helloworld1.ear, >> provided that helloworld2.ear has already been deployed. >> >> >> >> Deployment failed: >> Error processing 'remote' element for EJB Reference 'ejb/helloworld2' >> for module 'helloworld1-ejb.jar': Remote interface class not found: >> ejb.helloworld2.Hello2 >> >> >> >> This is my geronimo-application.xml for the helloworld1.ear >> >> >> >> >> >> > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"> >> >> > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >> >> >> >> >> default >> >> >> Hello1 >> >> >> 1.0 >> >> >> > car > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Am I missing any configuration? Appreciate your help on this. >> >> >> >> >> >> Thanks, >> >> Siraj >> >> > > --------------050109020708040408090605 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Siraj,

Yes it is the problem. When I add the dependencies to the geronimo-application.xml I can deploy two EARs without any error.  Please find the  attached  geronimo-application.xml of helloworld1.ear.

Regards,
Lasantha Ranaweera

Siraj Mohamed wrote:
Hi,

I am attaching two ears.


Thanks,
Siraj

-----Original Message-----
From: Lasantha Ranaweera [mailto:lasantha@opensource.lk] 
Sent: Tuesday, September 26, 2006 3:17 PM
To: user@geronimo.apache.org
Subject: Re: Refering an EJB deployed in 2nd EAR

Hi,

I think in your first openejb-jar.xml (HelloWorld1) you haven't mention 
the dependency of HelloWorld2. Post your two ears if you can't find the 
problem still.

Regards,
Lasantha Ranaweera

Siraj Mohamed wrote:
  
Hi,

 

I tried it out in G 1.1.1 version but it fails. I have two EAR 
applications (say helloworld1.ear and helloworld2.ear) and I refer 
hellword2 ejb in helloworld1 ejb.

 

This is helloworld1 ejb's openejb-jar.xml looks like.

 

<?xml version="1.0" encoding="UTF-8"?>

 

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">

                <dep:environment 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">

                                <dep:moduleId>

                                                
<dep:groupId>default</dep:groupId>

                                                
<dep:artifactId>HelloBean1</dep:artifactId>

                                                
<dep:version>1.0</dep:version>


    
<dep:type>car</dep:type>
  
                                </dep:moduleId>

                                <dep:dependencies/>

                                <dep:hidden-classes/>

                                <dep:non-overridable-classes/>

                </dep:environment>

 

    <enterprise-beans>

        <session>

            <ejb-name>HelloBean1</ejb-name>

            <jndi-name>ejb/helloworld1</jndi-name>

           

            <ejb-ref>

                     <ref-name>ejb/helloworld2</ref-name>

                     <ejb-link>HelloBean2</ejb-link>

            </ejb-ref>

 

        </session>

    </enterprise-beans>

</openejb-jar>

 

And also this is the segment of the ejb-jar.xml of helloworld1 ejb.

 

<enterprise-beans>

      <session>

         <description>no description</description>

         <display-name>HelloBean1</display-name>

         <ejb-name>HelloBean1</ejb-name>

         <home>ejb.helloworld1.HelloHome1</home>

         <remote>ejb.helloworld1.Hello1</remote>

         <ejb-class>ejb.helloworld1.HelloBean1</ejb-class>

         <session-type>Stateless</session-type>

         <transaction-type>Container</transaction-type>

 

         <ejb-ref id="EJBRemoteRef_1">

            <ejb-ref-name>ejb/helloworld2</ejb-ref-name>

            <ejb-ref-type>Session</ejb-ref-type>

            <home>ejb.helloworld2.HelloHome2</home>

            <remote>ejb.helloworld2.Hello2</remote>

         </ejb-ref>

 

      </session>

   </enterprise-beans>

 

 

This is helloworld2 ejb's openejb-jar.xml looks like.

 

<?xml version="1.0" encoding="UTF-8"?>

 

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">

                <dep:environment 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">

                                <dep:moduleId>

                                                
<dep:groupId>default</dep:groupId>

                                                
<dep:artifactId>HelloBean2</dep:artifactId>

                                                
<dep:version>1.0</dep:version>


    
<dep:type>car</dep:type>
  
                                </dep:moduleId>

                                <dep:dependencies/>

                                <dep:hidden-classes/>

                                <dep:non-overridable-classes/>

                </dep:environment>

 

    <enterprise-beans>

        <session>

            <ejb-name>HelloBean2</ejb-name>

            <jndi-name>ejb/helloworld2</jndi-name>

        </session>

    </enterprise-beans>

</openejb-jar>

 

I am getting following error when I tried to deploy helloworld1.ear, 
provided that helloworld2.ear has already been deployed.

 

Deployment failed:
Error processing 'remote' element for EJB Reference 'ejb/helloworld2' 
for module 'helloworld1-ejb.jar': Remote interface class not found: 
ejb.helloworld2.Hello2

 

This is my geronimo-application.xml for the helloworld1.ear

 

<?xml version="1.0" encoding="UTF-8"?>

<application 
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1">

                <dep:environment 
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">

                                <dep:moduleId>

                                                
<dep:groupId>default</dep:groupId>

                                                
<dep:artifactId>Hello1</dep:artifactId>

                                                
<dep:version>1.0</dep:version>


    
<dep:type>car</dep:type>
  
                                </dep:moduleId>

                                <dep:dependencies />

                                <dep:hidden-classes/>

                                <dep:non-overridable-classes/>

                </dep:environment>

</application>

 

Am I missing any configuration? Appreciate your help on this.

 

 

Thanks,

Siraj

    

  

--------------050109020708040408090605-- --------------070602030007030609080607 Content-Type: text/xml; name="geronimo-application.xml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="geronimo-application.xml" default Hello1 1.0 car default Hello2 1.0 car --------------070602030007030609080607--