users@glassfish.java.net

Re: one persistence unit for few EJB modules in one EAR

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 20 Jan 2009 16:25:37 -0800

Do you list entity.jar in application.xml?

thanks,
-marina

Witold Szczerba wrote:
> 2009/1/19 Sahoo <sahoo_at_sun.com>:
>
>> Put your entity.jar containing persistence.xml in ear/lib directory.
>>
>
> Thanks for the hint. Now I am getting different error:
> -------------------
> Error in annotation processing: java.lang.NoClassDefFoundError:
> pl/ibpolsoft/netbroker/core/services/DummyEJBRemote
> Exception occured in J2EEC Phasejava.lang.IllegalArgumentException:
> Invalid ejb jar [netBroker/netBroker-ejb.jar]: it contains zero ejb.
> -------------------
> It says it cannot find @Remote interface, but the only thing I did was
> to create new JAR project (just regular Java project in NetBeans) and
> moved my persistance.xml (did not touch @Remote interfaces or anything
> else) from EJB module into META-INF of that new project and placed
> that JAR in EAR/lib. Nothing more, but it seems Glassfish found
> another excuse not to let me go further.
>
> I know you would probably need more details, so I will start from
> scratch and prepare new clean project. If it GF will not let it go, I
> will zip it all and send here (it will be tiny).
>
> Thanks,
> Witold Szczerba
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>