I'm new around here and just trying to get my EJB deployed under GlassFish 3 for the first time.
Using NetBeans 6.8 I've created a new Enterprise/EJB module...containing some library references, a stateless session bean and web service
Everything deploys OK with earlier glassfish version but not with v3
I get the following depolyment errors...
[#|2010-02-11T17:54:54.172+0000|SEVERE|glassfishv3.0|global|_ThreadID=25;_ThreadName=Thread-1;|Class [ com/blah/blah/MyClass ] not found. Error while loading [ class com.blah.ws.sessionbean.MySessionBean ]|#]
[#|2010-02-11T17:54:54.172+0000|WARNING|glassfishv3.0|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=25;_ThreadName=Thread-1;|Error in annotation processing: java.lang.NoClassDefFoundError: com/blah/blah/MyClass|#]
[#|2010-02-11T17:54:54.172+0000|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=25;_ThreadName=Thread-1;|Exception while deploying the app
java.lang.IllegalArgumentException: Invalid ejb jar [MyWebService]: it contains zero ejb.
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.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.[/i]
Taking a look at the EJB jar file it contains everything it should have, including com/blah/blah/MyClass contained within another jar file
What am I missing?
Any help appreciated....starting to pull my hair out! eek!
[Message sent by forum member 'sharpy70' (chri...@experian.com)]