geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: Unable to deploy an EJB3.0 sample app
Date Sun, 21 Jan 2007 21:11:55 GMT

On Jan 21, 2007, at 1:03 PM, Prasad Kashyap wrote:

> 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 ?

Nope, that should be fixed and very good work tracking this down.  Do  
you want the honors of adding this fix?

-David

>
> Cheers
> Prasad
>
> On 1/20/07, Prasad Kashyap <goyathlay.geronimo@gmail.com> 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
>>
>


Mime
View raw message