users@glassfish.java.net

Re: Having trouble getting JPA to work when migrating from Jboss to glassfish

From: Sahoo <sahoo_at_sun.com>
Date: Thu, 29 Jan 2009 14:18:28 +0530

Did you use any IDE to build this application? If you send us the test
case, we can tell you the problem.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> Moreover if i am trying to get rid of my ejb-jar.xml even though i have annotations glassfish is not able to process them properly.i am getting following error:
>
> SEVERE: Exception occured in J2EEC Phasejava.lang.IllegalArgumentException: Invalid ejb jar [test-ejb.jar]: it contains zero ejb.
> Note:
> 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
> 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
> 3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
> [Message sent by forum member 'naveen2097' (naveen2097)]
>
> http://forums.java.net/jive/thread.jspa?messageID=328727
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>