Dear All,
I wanted to
test DI so I prepared an EAR with a web module and with an
ejb module. When I try to deploy this EAR to Glassfish v3 server, I am getting the following exception.
Exception while deploying the app : java.lang.IllegalArgumentException: Invalid ejb jar [ActionBazarEJB.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, @Singleton), please check server.log to se..
From the above I understood that Glassfish is somehow not recognizing my EJB eventhough I have annotations. Do I need to have a vendor specific xml DD (sun-ejb-jar.xml in this case)?
Please clarify.
Sai Surya, SCJP 5.0, SCWCD 5.0, IBM 833 834
http://sai-surya-talk.blogspot.com, I believe in Murphy's law.