users@glassfish.java.net

Re: Deployment error when calling methods from external class

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 10 Sep 2007 16:30:43 +0530

That error indicates that you have designated a simple jar file as
ejb-jar in your application.xml file. Can you check if you have
specified WSNData.jar as an ejb module in application.xml file? If so,
remove that to get rid of the error. If it still persists, then send
details about how you are packaging your ear file.

Thanks,
Sahoo
glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>