Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-11607

ssoadm import-svc-cfg fails with Guice errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.1, 14.0.0, 14.1.0, 14.1.1, 14.5.0
    • Fix Version/s: 13.5.2, 14.1.2
    • Component/s: ssoadm
    • Labels:
    • Sprint:
      AM Sustaining Sprint 42
    • Story Points:
      2
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Running the ssoadm import-svc-cfg command will result in Guice errors.

      How to reproduce the issue

      Run the ssoadm import-svc-cfg command, does not need to use a valid exported XML file, it fails before attempting to load the file.

      Expected behaviour

      The command to complete successfully.

      Current behaviour
      openam/bin/ssoadm import-svc-cfg -u amadmin -f ../passwd.txt -e test -X ../test.xml
      com.google.inject.CreationException: Guice creation errors:
      
      1) No implementation for javax.servlet.ServletContext annotated with @com.google.inject.name.Named(value=servletContext) was bound.
        while locating javax.servlet.ServletContext annotated with @com.google.inject.name.Named(value=servletContext)
          for parameter 0 at org.forgerock.openam.services.baseurl.BaseURLProviderFactory.<init>(Unknown Source)
        while locating org.forgerock.openam.services.baseurl.BaseURLProviderFactory
          for parameter 1 at org.forgerock.openam.http.OpenAMHttpApplication.<init>(Unknown Source)
        at org.forgerock.openam.http.HttpGuiceModule.configure(HttpGuiceModule.java:35)
      
      1 error
      	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
      	at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
      	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
      	at com.google.inject.Guice.createInjector(Guice.java:95)
      	at org.forgerock.guice.core.GuiceInjectorCreator.createInjector(GuiceInjectorCreator.java:33)
      	at org.forgerock.guice.core.InjectorFactory.createInjector(InjectorFactory.java:63)
      	at org.forgerock.guice.core.InjectorHolder.<init>(InjectorHolder.java:49)
      	at org.forgerock.guice.core.InjectorHolder.<clinit>(InjectorHolder.java:37)
      	at com.sun.identity.cli.SubCommand.execute(SubCommand.java:295)
      	at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
      	at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
      	at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:583)
      	at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:180)
      	at com.sun.identity.cli.CommandManager.main(CommandManager.java:157)
      

      Work around

      Amster if that is an option.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markdr Mark de Reeper
                Reporter:
                markdr Mark de Reeper
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: