glassfish
  1. glassfish
  2. GLASSFISH-20807

Embedded glassfish 4, NoClassDefFoundError javax/security/auth/message/module/ServerAuthModule

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
      None
    • Environment:

      Embedded Container used through maven embedded glassfish plugin.

      Description

      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

      <configuration>
      <app>$

      {project.build.directory}

      /$

      {project.build.finalName}</app>
      <contextRoot>${project.build.finalName}

      </contextRoot>
      <configFile>
      src/test/resources/domain.xml
      </configFile>
      </configuration>

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            ndonti
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: