There are known problems with handling OSGi modules in the classpath. But why do you have all these modules in the classpath in addition to glassfish-embedded-all-3.1-b20.jar that contains all of GlassFish?
-marina
[Message sent by forum member 'mvatkina']
http://forums.java.net/jive/thread.jspa?messageID=483366