I am writing a webapp that uses a custom server authentication module. Everything works fine on standalone glassfish. I am trying to use maven-embedded-glassfish-plugin. The plugins configuration section is
The custom SAM is declared as a dependency to the plugin in pom.xml.
As soon as I go to the welcome page in the browser the NoClassDefFoundError is thrown.
This looks like a dependency/packaging issue. To me this looks similar to https://java.net/jira/browse/GLASSFISH-20308.
Let me know if you guys need more information.