Integrate a simple EJB3 program with Hibernate3.2, and when deploying the program, the following exception has been shown on the
ant console.
deploy:
[echo] asadmin.bat deploy --user admin --password 12345678 --host localhost --port 4848 --upload=true lib/chapter2.ear
[exec] CLI171 Command deploy failed : Deploying application in domain failed; Error loading deployment descriptors for module [chapter2] -- Invalid
ejb jar [chapter2-ejb.jar]: it contains zero ejb.
[exec] Note:
[exec] 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
[exec] 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
[exec] Result: 1
Any idea what is going wrong here?
Thanks,
Jiafan
SCJP, SCJD, SCWCD, SCBCD, SCEA