Hello everyone,
I am new to EJB 3.0 and I try to deploy a simple Web Service as a Stateless Session Bean. My EAR contains two class files, one is the session bean and the other one is a helper class to parse XML strings.
Everything works fine when I do not reference a method of my helper class. The EAR is deployed to Glassfish without any errors. But when I try to create an object and call a method from my helper class, I get the following error:
Deploying application in domain failed; Error loading deployment descriptors for module [MyModule] -- Invalid ejb jar [C:\glassfish\domains\domain1\applications\j2ee-modules\WSNData]: 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.
Is there any rule that extra code (which is not a bean) must be located in an other place than in the EAR?
Thank you.
Matthias
[Message sent by forum member 'matta' (matta)]
http://forums.java.net/jive/thread.jspa?messageID=234641