on November 3, 2010 at 4:19 AM PDT
I have been deploying an EJB 3.0 project on Sun App server 9.1. I want to upgrade the App server to Glassfish 3.0. The problem I am having is that I am getting the error message below when i tried to deploy the project through the Glassfish portal
What is confusing me is that I have went through the criteria in the error message and my EJB project should be deployable.
Have any of you any ideas how get past this? I have seen the issue on many forums but no one seems to have a valid answer.
Any suggestion are welcome.
Exception while deploying the app : java.lang.IllegalArgumentException: Invalid ejb jar xxx-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, @Singleton), please check server.log to se...