FlexibleJdbcRealm
  1. FlexibleJdbcRealm
  2. FLEX-11

class IASRealm not found on Payara 5

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Environment:
      Linux/Payara5, probably also Linux/Glassfish5

      Description

      I've successfully run it on Glassfish 4 (for years now). But it seems the IASRealm was already deprecated and has since been removed.

      The Glassfish Application Development guide gives hints on which classes to extend.

      So I did the following to get things up and running again:

      - replaced dependency

              <dependency>
                  <groupId>com.sun.appserv</groupId>
                  <artifactId>rt</artifactId>
                  <version>0.2</version>
                  <scope>system</scope>
                  <systemPath>${basedir}/lib/appserv-rt.jar</systemPath>
                  <optional>true</optional>
              </dependency>

      WITH:
       <dependency>
              <groupId>org.glassfish.main.security</groupId>
              <artifactId>security-ee</artifactId>
              <version>5.0</version>
          </dependency>
          
      - made FlexibleJdbcRealm and FlexibleJdbcLoginModule extend AppservRealm and AppservPasswordLoginModule respectively.
      - fixed some method signatures that have changed.

      That seemed to do the trick.

      As an aside: the whole thing also works on the Payara application server, which is a commercial drop-in replacement for Glassfish.

      Just so you know.

        Activity

        Hide
        Erik Brakkee added a comment -
        Thanks for reporting this issue. I am investigating these changes now.
        Show
        Erik Brakkee added a comment - Thanks for reporting this issue. I am investigating these changes now.
        Hide
        Erik Brakkee added a comment - - edited
        I have now made the changes you mentioned and installed it on glassfish v4. It appears to be working.

        Before I publish the jar to the maven repository, can you check whether my changes are as you expect?
        Show
        Erik Brakkee added a comment - - edited I have now made the changes you mentioned and installed it on glassfish v4. It appears to be working. Before I publish the jar to the maven repository, can you check whether my changes are as you expect?

          People

          • Assignee:
            Erik Brakkee
            Reporter:
            Maarten van Leunen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: