Can you add these jars in your classpath, taken from the modules directory of a regular glassfish installation, and try your test case :
modules/webservices-connector.jar
modules/webservices-osgi.jar
modules/webservices.security.jar
modules/endorsed/javax.annotation.jar
modules/endorsed/jaxb-api-osgi.jar
modules/endorsed/webservices-api-osgi.jar
After adding the above jars, if you see any stack trace in the logs complaining about "Provider already mapped glassfish" etc. you can ignore it.
[Message sent by forum member 'sirajg']
http://forums.java.net/jive/thread.jspa?messageID=476557