Details

    • Steps to Reproduce:
      Hide

      Create multiple parallel instances of the "standalone" profile.

      C:\JBoss\jboss-eap-6\standalone_1\
      C:\JBoss\jboss-eap-6\standalone_2\
      ...

      Now on running following command:
      C:\JBoss\jboss-eap-6\bin\standalone.bat -Djboss.server.base.dir=..\standalone_1\ -Djboss.server.log.dir=C:\EAP_6_logs\Logs_standalone_1

      ... it creates server.log in C:\EAP_6_logs\Logs_standalone_1 but boot.log always gets created inside c:\JBoss\jboss-eap-6\standalone\log

      This works well in Linux.
      Checking the script file shows difference between "standalone.sh" and "standalone.bat". The "standalone.sh" has below related additional lines which takes up the "Djboss.." parameters as command line args

      if $linux; then

      1. consolidate the server and command line opts
        SERVER_OPTS="$JAVA_OPTS $@"
      2. process the standalone options
        for var in $SERVER_OPTS
        do
        case $var in
        -Djboss.server.base.dir=*)
        JBOSS_BASE_DIR=`readlink -m ${var#*=}`
        ;;
        -Djboss.server.log.dir=*)
        JBOSS_LOG_DIR=`readlink -m ${var#*=}`
        ;;
        -Djboss.server.config.dir=*)
        JBOSS_CONFIG_DIR=`readlink -m ${var#*=}`
        ;;
        esac
        done
        fi
      Show
      Create multiple parallel instances of the "standalone" profile. C:\JBoss\jboss-eap-6\standalone_1\ C:\JBoss\jboss-eap-6\standalone_2\ ... Now on running following command: C:\JBoss\jboss-eap-6\bin\standalone.bat -Djboss.server.base.dir=..\standalone_1\ -Djboss.server.log.dir=C:\EAP_6_logs\Logs_standalone_1 ... it creates server.log in C:\EAP_6_logs\Logs_standalone_1 but boot.log always gets created inside c:\JBoss\jboss-eap-6\standalone\log This works well in Linux. Checking the script file shows difference between "standalone.sh" and "standalone.bat". The "standalone.sh" has below related additional lines which takes up the " Djboss.." parameters as command line args if $linux; then consolidate the server and command line opts SERVER_OPTS="$JAVA_OPTS $@" process the standalone options for var in $SERVER_OPTS do case $var in -Djboss.server.base.dir=*) JBOSS_BASE_DIR=`readlink -m ${var#*=}` ;; -Djboss.server.log.dir=*) JBOSS_LOG_DIR=`readlink -m ${var#*=}` ;; -Djboss.server.config.dir=*) JBOSS_CONFIG_DIR=`readlink -m ${var#*=}` ;; esac done fi
    • Estimated Difficulty:
      High

      Description

      Creating multiple JBoss server instances parallel to standalone.
      Every instance should have its own custom log directory for storing the boot.log and server.log.

      The functionality works fine if its a Linux script (standalone.sh) but not on Windows (standalone.bat)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jamezp James Perkins
                  Reporter:
                  anuragdebnath Anurag Debnath
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: