What version of Geronimo are you using? This was a known bug in
Geronimo 1.1 and maybe 1.1.1. It should be fixed in trunk, which is
1.2-SNAPSHOT. You can test last week's binary unstable release here:
http://people.apache.org/dist/geronimo/unstable/
-dain
On Nov 8, 2006, at 4:24 AM, Iyer, Prasad C wrote:
It is not getting deployed. It throws the following exception.
Could not find an EJB for reference ejb/org.presci.ejb.account.Account
to a remote session bean that has the home interface
org.presci.ejb.account.AccountHome and the remote interface
org.presci.ejb.account.Account
org.apache.geronimo.common.UnresolvedEJBRefException: Could not
find an
EJB for reference ejb/org.presci.ejb.account.Account to a remote
session
bean that has the home interface org.presci.ejb.account.AccountHome
and
the remote interface org.presci.ejb.account.Account
at
org.openejb.deployment.OpenEJBReferenceBuilder.getMatch
(OpenEJBReference
Builder.java:212)
at
org.openejb.deployment.OpenEJBReferenceBuilder.createEJBRemoteRef
(OpenEJ
BReferenceBuilder.java:150)
at
org.openejb.deployment.OpenEJBReferenceBuilder$$FastClassByCGLIB$
$bfd62c
9f.invoke(<generated>)
regards
prasad chandrasekaran
-----Original Message-----
From: Mohammad Nour El-Din [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 08, 2006 5:36 PM
To: [email protected]
Subject: Re: problems creating ejb-link between 2 stateless session
bean
HI Prasad...
You didn't say what is going wrong with you ? you can't access the
AccountBean or there is an exception thrown while deploying your
AppEar
?
On 11/8/06, Iyer, Prasad C <[EMAIL PROTECTED]> wrote:
Hi,
I have 2 stateless session bean. CustomerBean and AccountBean
This 2 beans have their respective jar files cust.jar and
account.jar
which are bundled into a app.ear file.
My problem is while creating a link between CustomerBean and
AccountBean(My CustomerBean wants to access the AccountBean)
Following is the ejb-jar file for cust.jar
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>Cust</ejb-name>
<home>org.presci.ejb.cust.CustHome</home>
<remote>org.presci.ejb.cust.Cust</remote>
<ejb-class>org.presci.ejb.cust.CustBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/org.presci.ejb.account.Account</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.presci.ejb.account.AccountHome</home>
<remote>org.presci.ejb.account.Account</remote>
<ejb-link>account.jar#Account</ejb-link>
</ejb-ref>
</session>
</enterprise-beans>
</ejb-jar>
Can anyone please help me out what should I put in openejb-jar.xml
file?
Currently my openejb-jar.xml contains following code.
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
<enterprise-beans>
<session>
<ejb-name>Cust</ejb-name>
<jndi-name>org.presci.ejb.cust.Cust</jndi-name>
</session>
</enterprise-beans>
</openejb-jar>
Regards
Prasad chandrasekaran
This message contains information that may be privileged or
confidential
and is the property of the Capgemini Group. It is intended only for
the
person to whom it is addressed. If you are not the intended
recipient,
you
are not authorized to read, print, retain, copy, disseminate,
distribute,
or use this message or any part thereof. If you receive this
message
in
error, please notify the sender immediately and delete all
copies of
this
message.
--
Thanks
- Mohammad Nour
This message contains information that may be privileged or
confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are
not the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.