I was able to deploy the app successfully but only after using an
openejb-jar.xml.

Dain & Blevins,
On the irc discussion on Sat, 01/20, we thought that an
openejb-jar.xml is not mandatory. I debugged the builder and realized
the contrary.

In the EJBModuleBuilder.java, it doesn't check to see if the
openejb-jar.xml is null or not.
String openejbJarXml = XmlUtil.loadOpenejbJarXml(object, moduleFile);
OpenejbJar openejbJar = XmlUtil.unmarshal(OpenejbJar.class, openejbJarXml);

http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java?view=log

Should this be fixed ? Or is the openejb-jar.xml mandatory ?

Cheers
Prasad

On 1/20/07, Prasad Kashyap <[EMAIL PROTECTED]> wrote:
I have created a sample application out of the
calculator-stateless-pojo example in OpenEJB 3.0

It is checked in here -
http://svn.apache.org/viewvc/geronimo/samples/trunk/calculator-stateless-pojo/

The app tries to demonstrate dependency injection of the bean into a
servlet and obviates the need for the deployment-descriptor.

But I learnt from David Blevins that while the app may not need a DD,
geronimo doesn't yet support ear archives with no ejb-jar.xml. It
doesn't know to give them to openejb. Hence under his guidance I put a
dummy ejb-jar.xml and a minimum geronimo-web.xml.

When I try to deploy this app, it fails with the following error:

   Error: Unable to distribute calculator-stateless-ear-2.0-SNAPSHOT.ear:
   Module was not an EJB: calculator-stateless-ejb-2.0-SNAPSHOT.jar

Am I missing anything else here ? Can someone please help ?


Thanx in advance
Prasad

Reply via email to