When the dependent classes are not packaged in the same JAR as the EJB, then for them to be included in the classpath of wsgen/wscompile tools (during deployment time), you can use the Classpath manifest of the JAR/EAR's manifest file. By default all JARs EAR/lib directory are taken in classpath.
For reference, checkout these dev tests :
glassfish/appserv-tests/devtests/webservice/ejb_annotations/libdependent
glassfish/appserv-tests/devtests/webservice/ejb_annotations/libdependent-2
Hope this helps
[Message sent by forum member 'vijaysr' (vijaysr)]
http://forums.java.net/jive/thread.jspa?messageID=207181