2 Replies Latest reply on Dec 16, 2014 11:00 AM by bradleyross

    add-user.sh does not work in WildFly 8.2 Core distro

    mazz

      1. Download WF 8.2 core distro: wget http://download.jboss.org/wildfly/8.2.0.Final/core/wildfly-core-8.2.0.Final.zip

      2. Unzip: unzip wildfly-core-8.2.0.Final.zip

      3. Go to the bin/ directory: cd wildfly-core-8.2.0.Final/bin

      4. Try to add a user via add-user.sh: ./add-user.sh

      5. See this error message:

       

      org.jboss.modules.ModuleNotFoundException: org.jboss.as.domain-add-user:main
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
              at org.jboss.modules.Main.main(Main.java:385)

       

      I tried to add a user because if you just start the core server via ./standalone.sh and you point a brower to http://localhost:9990/management, you'll get this in the browser:

       

      {
          "outcome" : "failed",
          "failure-description" : "JBAS015135: The security realm is not ready to process requests, see http://localhost:9990/error",
          "rolled-back" : "true"
      }

       

      And when you point your browser to that http://localhost:9990/error URL, you'll see the normal welcome screen that tells me to use add-user.sh:

       

      Welcome to WildFly

      Your WildFly Application Server is running.

      However you have not yet added any users to be able to access the admin console.

      To add a new user execute the add-user.sh script within the bin folder of your WildFly installation and enter the requested information.

        • 1. Re: add-user.sh does not work in WildFly 8.2 Core distro
          ctomc

          First proper builds of core distro are from 9 on, 8.x just have it as POC and as such few things don't work OOTB.

           

          can you check with 9.0.0.Alpha1?

          • 2. Re: add-user.sh does not work in WildFly 8.2 Core distro
            bradleyross

            Please disregard the following.  It turns out there was a typo in one of the environmental variables on Windows.

             

            With regard to the original problem, what version of Java are you using to run the command.  Check the value of JAVA_HOME environmental variable.  I'm still wondering about some of the parameters for the Java command.

             

            ***  *** ***


            I think that I am having a similar problem with AS 7.1.1.Final when I try running add-user.bat

             

            The end of the file is

             

            rem Setup JBoss specific properties

            rem Setup the java endorsed dirs
            set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

            rem Set default module root paths
            if "x%JBOSS_MODULEPATH%" == "x" (
              set  "JBOSS_MODULEPATH=%JBOSS_HOME%\modules"
            )

            "%JAVA%" ^
                -jar "%JBOSS_HOME%\jboss-modules.jar" ^
                -mp "%JBOSS_MODULEPATH%" ^
                 org.jboss.as.domain-add-user ^
                 %*

            :END
            if "x%NOPAUSE%" == "x" pause

             

            However, there is no mp parameter for Java.  I'm assuming that I'm supposed to call a Java class contained in jboss-modeules.jar that will use "%JBOSS_MODULEPATH%", org.jboss.as.domain-add-user and %* as parameters.  What is "%*"?