glassfish
  1. glassfish
  2. GLASSFISH-20941

create-file-user isn't usable in embedded glassfish 4

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1, 3.1.1
    • Fix Version/s: 3.1.2, 4.0_b05, 4.0
    • Component/s: embedded
    • Labels:
      None

      Description

      Glassfish 3.1's "asadmin create-file-user" command forces password entry on stdin. While this is desirable for many situations, it completely breaks the use case of glassfish embedded. You can't enter stdin text when running commands with org.glassfish.embeddable.CommandRunner , and the "--password" argument has been helpfully removed.

        Activity

        Hide
        atrajano added a comment -

        When using maven-embedded-glassfish-plugin I get the same error as matthewcomell from the original defect. The error I got was

        FAILUREorg.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed on com.sun.enterprise.security.cli.CreateFileUser.userpassword with class java.lang.StringDescription: create-file-user commandCannot find userpassword in create-file-user command model, file a bug
        Usage: create-file-user
        [--authrealmname <authrealm_name>] [--target target]
        [--groups user_groups[:user_groups]*]
        [?|-help[=<help(default:false)>]] username

        Show
        atrajano added a comment - When using maven-embedded-glassfish-plugin I get the same error as matthewcomell from the original defect. The error I got was FAILUREorg.jvnet.hk2.component.UnsatisfiedDependencyException: injection failed on com.sun.enterprise.security.cli.CreateFileUser.userpassword with class java.lang.StringDescription: create-file-user commandCannot find userpassword in create-file-user command model, file a bug Usage: create-file-user [--authrealmname <authrealm_name>] [--target target] [--groups user_groups [:user_groups] *] [?|-help [=<help(default:false)>] ] username

          People

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

            Dates

            • Created:
              Updated: