Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2099

Cannot run IG and JPA together, SLF4J initialisation failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0.0, 5.5.0.0
    • Fix Version/s: 5.5.1.0
    • Component/s: J2EE Agents
    • Labels:

      Description

      When running IG and JPA together, IG fails to start with the following exception:

       

      java.lang.ClassCastException: org.forgerock.agents.slf4j.AgentLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext 
      

      This happen because JPA is installing its own SLF4J binding, where IG expects LogBack to be installed.

      Any application, using SLF4J and protected by JPA, can be subject to that kind of failures.

      In the best case, application's logs would be redirected into the JPA log system, changing the usual places where an application administrator would expects its own application's logs.

      In the worst case, this is like IG: init failure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tony.bamford Tony Bamford
              Reporter:
              guillaume.sauthier Guillaume Sauthier
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: