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