you need to include all the interfaces for the bean in the ejb jar, not
just the optional ejb client jar. We actually ignore the client jar if
you specify it.
thanks
david jencks
On Jul 10, 2005, at 1:59 PM, Nicholas Irving wrote:
Thanks for the rely,
Now I am confused. I have the following in (META-INF/ejb-jar.xml)
<ejb-client-jar>ZooBeansClient.jar</ejb-client-jar>
Which is included in the EJB JAR file, which contains the Remote
Interface
etc. I take it somehow I need to get this reference into my
(META-INF/openejb-jar.xml) file as well? The documents regarding this
are a
little vague.
NIrving
-----Original Message-----
From: Jacek Laskowski
[mailto:jlaskowski-1oDqGaOF3Lkdnm+yROfE0A@xxxxxxxxxxxxxxxx]
Sent: 10 July 2005 21:12
To: user-nmThH5wfGryY1pf4d8vP8EB+6BGkLq7r@xxxxxxxxxxxxxxxx
Subject: Re: What am I doing wrong? EJB Deployment Errors
Nicholas Irving wrote:
I am getting the following error back
Server reports: Remote interface class not found: com.zoo.Tiger
org.apache.geronimo.deployment.DeploymentException: Remote interface
class not found: com.zoo.Tiger
Let's take a look at the relevant piece of the standard deployment
descriptor (META-INF/ejb-jar.xml):
<session >
<description><![CDATA[A session bean named
Tiger]]></description>
<display-name>Tiger</display-name>
<ejb-name>Tiger</ejb-name>
<home>com.zoo.TigerHome</home>
<remote>com.zoo.Tiger</remote>
<local-home>com.zoo.TigerLocalHome</local-home>
<local>com.zoo.TigerLocal</local>
<ejb-class>com.zoo.TigerSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
And let's take a look at the content of the com\zoo directory where
these classes are supposed to be found:
TigerBean.class
TigerSession.class
Do you see the issue? Where are the other bean classes? The class in
question - the remote interface, com.zoo.Tiger - is not in any place
where Geronimo could find it, either in the jar itself or in the EJB
(GBean) dependencies.
I'm almost 100% sure that when you pack the whole bean correctly, the
Geronimo Deployer will do its job and deploy the bean.
Jacek
|