users@glassfish.java.net

Re: EJBs from shared lib in glassfish 3 did not deploy

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Dec 2009 12:03:30 PST

Hi Ralph,

Are you trying to share a local ejb from an ejb-jar to a .war? If so, just put the local interface in the library .jar instead including the bean class that contains @Stateless. There have been some bug fixes between V2 and V3 to bring GlassFish in line with the Java EE platform annotation processing requirements.

In V2, library .jars were not processed for annotations. They are now, but the platform spec warns against including component classes with component-defining annotations in a library .jar since it can result in a component being defined in more than one module.

Better yet, just get rid of the ejb-jar/.ear altogether and put the ejb classes in the .war :-)
http://blogs.sun.com/kensaks/entry/simplified_ejb_component_packaging
[Message sent by forum member 'ksak' ]

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