Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8076550

LoginContext configuration file not recognized.

    XMLWordPrintable

Details

    • x86_64
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      When initializing the JWS application, the application fails on javax.security.auth.login.LoginContext.init with javax.security.auth.login.LoginException: No LoginModules configured for ...
      java.security.auth.login.config system property is set to the good configuration which includes the necessary JAAS module configuration.

      REGRESSION. Last worked in version 8u25

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
      Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Prepare an JWS application with JAAS login.
      Put the LoginContext configration service in one of the JWS jars.
      Modify java.security.auth.login.config system property to point the JAAS configuration file.
      Try to initiate a LoginContext.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      LoginContext should be initialized.
      ACTUAL -
      javax.security.auth.login.LoginException: No LoginModules configured for TradeSurfClientLogin
      at javax.security.auth.login.LoginContext.init(Unknown Source)
      at javax.security.auth.login.LoginContext.<init>(Unknown Source)


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      javax.security.auth.login.LoginException: No LoginModules configured for TradeSurfClientLogin
      at javax.security.auth.login.LoginContext.init(Unknown Source)
      at javax.security.auth.login.LoginContext.<init>(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Activity

          People

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: