You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Janne Kario <ka...@mermit.fi> on 2005/07/23 17:01:42 UTC

EJB jar deployment problem

I developed a simple test EJB with Eclipse Webtools RC1. WTP has the 
option of creating separate EJB jar and EJB client jar projects so that 
in the end the deployment looks like this (ejbClient.jar is packaged 
inside the ejb.jar).

ejb.jar:
   META-INF/ejb-jar.xml
   META-ING/MANIFEST.MF
   test/TestEJB.class
   ejbClient.jar

ejbClient.jar:
   test/TestHome.class
   test/Test.class


MANIFEST.MF entry has a reference to the ejbClient.jar and ejb-jar.xml 
has the ejb-client-jar -element.

However, when I try to deploy this standalone ejb.jar into Geronimo it 
fails with an error message saying that it cannot find test.TestHome.

Is this kind of packaging supported by Geronimo/J2EE 1.4 or should I 
redirect this to WTP dev and point out that they have it wrong.

* Janne Kario




Re: EJB jar deployment problem

Posted by Janne Kario <ka...@mermit.fi>.
Found it.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=100646

* Janne Kario

Sachin Patel wrote:
> Yes, the geronimo server support in WTP does not yet have EJB support.
> 
> Janne Kario wrote:
> 
>> Hi,
>>
>> I haven't tried exporting EAR file from WTP. Instead I was using the 
>> WTP Generic Geronimo Server and deployed just the ejb.jar. For some 
>> reason the WTP Geronimo Server does not support EAR deployment. I'll 
>> try using the EAR export function instead. Thanks for the help.
>>
>> * Janne Kario
>>
>>
>> Sachin Patel wrote:
>>
>>> I think this may be an error in your configuration, and if not, then 
>>> a bug in WTP.  When exporting the ear in wtp, the client.jar and the 
>>> ejbjar should be packaged directly underneath the ear.  I just tried 
>>> this (I'm not sure which wtp build I have, within the past week 
>>> though) and my export was correct.
>>>
>>> Janne Kario wrote:
>>>
>>>> I developed a simple test EJB with Eclipse Webtools RC1. WTP has the 
>>>> option of creating separate EJB jar and EJB client jar projects so 
>>>> that in the end the deployment looks like this (ejbClient.jar is 
>>>> packaged inside the ejb.jar).
>>>>
>>>> ejb.jar:
>>>>   META-INF/ejb-jar.xml
>>>>   META-ING/MANIFEST.MF
>>>>   test/TestEJB.class
>>>>   ejbClient.jar
>>>>
>>>> ejbClient.jar:
>>>>   test/TestHome.class
>>>>   test/Test.class
>>>>
>>>>
>>>> MANIFEST.MF entry has a reference to the ejbClient.jar and 
>>>> ejb-jar.xml has the ejb-client-jar -element.
>>>>
>>>> However, when I try to deploy this standalone ejb.jar into Geronimo 
>>>> it fails with an error message saying that it cannot find 
>>>> test.TestHome.
>>>>
>>>> Is this kind of packaging supported by Geronimo/J2EE 1.4 or should I 
>>>> redirect this to WTP dev and point out that they have it wrong.
>>>>
>>>> * Janne Kario
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
> 


Re: EJB jar deployment problem

Posted by Sachin Patel <sp...@gmail.com>.
Yes, the geronimo server support in WTP does not yet have EJB support.

Janne Kario wrote:

> Hi,
>
> I haven't tried exporting EAR file from WTP. Instead I was using the 
> WTP Generic Geronimo Server and deployed just the ejb.jar. For some 
> reason the WTP Geronimo Server does not support EAR deployment. I'll 
> try using the EAR export function instead. Thanks for the help.
>
> * Janne Kario
>
>
> Sachin Patel wrote:
>
>> I think this may be an error in your configuration, and if not, then 
>> a bug in WTP.  When exporting the ear in wtp, the client.jar and the 
>> ejbjar should be packaged directly underneath the ear.  I just tried 
>> this (I'm not sure which wtp build I have, within the past week 
>> though) and my export was correct.
>>
>> Janne Kario wrote:
>>
>>> I developed a simple test EJB with Eclipse Webtools RC1. WTP has the 
>>> option of creating separate EJB jar and EJB client jar projects so 
>>> that in the end the deployment looks like this (ejbClient.jar is 
>>> packaged inside the ejb.jar).
>>>
>>> ejb.jar:
>>>   META-INF/ejb-jar.xml
>>>   META-ING/MANIFEST.MF
>>>   test/TestEJB.class
>>>   ejbClient.jar
>>>
>>> ejbClient.jar:
>>>   test/TestHome.class
>>>   test/Test.class
>>>
>>>
>>> MANIFEST.MF entry has a reference to the ejbClient.jar and 
>>> ejb-jar.xml has the ejb-client-jar -element.
>>>
>>> However, when I try to deploy this standalone ejb.jar into Geronimo 
>>> it fails with an error message saying that it cannot find 
>>> test.TestHome.
>>>
>>> Is this kind of packaging supported by Geronimo/J2EE 1.4 or should I 
>>> redirect this to WTP dev and point out that they have it wrong.
>>>
>>> * Janne Kario
>>>
>>>
>>>
>>>
>>
>
>

Re: EJB jar deployment problem

Posted by Janne Kario <ka...@mermit.fi>.
Hi,

I haven't tried exporting EAR file from WTP. Instead I was using the WTP 
Generic Geronimo Server and deployed just the ejb.jar. For some reason 
the WTP Geronimo Server does not support EAR deployment. I'll try using 
the EAR export function instead. Thanks for the help.

* Janne Kario


Sachin Patel wrote:
> I think this may be an error in your configuration, and if not, then a 
> bug in WTP.  When exporting the ear in wtp, the client.jar and the 
> ejbjar should be packaged directly underneath the ear.  I just tried 
> this (I'm not sure which wtp build I have, within the past week though) 
> and my export was correct.
> 
> Janne Kario wrote:
> 
>> I developed a simple test EJB with Eclipse Webtools RC1. WTP has the 
>> option of creating separate EJB jar and EJB client jar projects so 
>> that in the end the deployment looks like this (ejbClient.jar is 
>> packaged inside the ejb.jar).
>>
>> ejb.jar:
>>   META-INF/ejb-jar.xml
>>   META-ING/MANIFEST.MF
>>   test/TestEJB.class
>>   ejbClient.jar
>>
>> ejbClient.jar:
>>   test/TestHome.class
>>   test/Test.class
>>
>>
>> MANIFEST.MF entry has a reference to the ejbClient.jar and ejb-jar.xml 
>> has the ejb-client-jar -element.
>>
>> However, when I try to deploy this standalone ejb.jar into Geronimo it 
>> fails with an error message saying that it cannot find test.TestHome.
>>
>> Is this kind of packaging supported by Geronimo/J2EE 1.4 or should I 
>> redirect this to WTP dev and point out that they have it wrong.
>>
>> * Janne Kario
>>
>>
>>
>>
> 


Re: EJB jar deployment problem

Posted by Sachin Patel <sp...@gmail.com>.
I think this may be an error in your configuration, and if not, then a 
bug in WTP.  When exporting the ear in wtp, the client.jar and the 
ejbjar should be packaged directly underneath the ear.  I just tried 
this (I'm not sure which wtp build I have, within the past week though) 
and my export was correct.

Janne Kario wrote:

> I developed a simple test EJB with Eclipse Webtools RC1. WTP has the 
> option of creating separate EJB jar and EJB client jar projects so 
> that in the end the deployment looks like this (ejbClient.jar is 
> packaged inside the ejb.jar).
>
> ejb.jar:
>   META-INF/ejb-jar.xml
>   META-ING/MANIFEST.MF
>   test/TestEJB.class
>   ejbClient.jar
>
> ejbClient.jar:
>   test/TestHome.class
>   test/Test.class
>
>
> MANIFEST.MF entry has a reference to the ejbClient.jar and ejb-jar.xml 
> has the ejb-client-jar -element.
>
> However, when I try to deploy this standalone ejb.jar into Geronimo it 
> fails with an error message saying that it cannot find test.TestHome.
>
> Is this kind of packaging supported by Geronimo/J2EE 1.4 or should I 
> redirect this to WTP dev and point out that they have it wrong.
>
> * Janne Kario
>
>
>
>