users@glassfish.java.net

Re: problem accessing remote ejb and a strange fact

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jun 2007 07:49:54 PDT

Hi Emilio,

Your problem is a packaging error. What's happening is you are packaging the
MyRemoteBean .class within the .war. MyRemoteBean is the implementation class for
the EJB so it should not appear within the .war. Classes that define an EJB using a
component defining annotation (@Stateless,_at_Stateful,_at_MessageDriven) can only be packaged
in an ejb-jar. All you need in the .war is the business interfaces (and any of their dependent
classes), not the bean class.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=223544