Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2523

cygwin jboss-cli.sh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Final
    • 8.0.0.Beta1
    • CLI
    • Low

      On cygwin is the implementation of the path variables not correct in the script jboss-cli.sh. Right now under cygwin the paths get mixed in POSIX and Windows style. The module path (-mp param) is in POSIX style and the rest of the command is in windows style. So the startup of the org.jboss.as.cli ends up with

      org.jboss.modules.ModuleNotFoundException: org.jboss.as.cli:main
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
              at org.jboss.modules.Main.main(Main.java:385)
      

      Right now wildfly 8 beta1 has following implementation:

      jboss-cli.sh
      # For Cygwin, switch paths to Windows format before running java
      if $cygwin; then
          JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
          JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
      fi
      

      and it should be:

      jboss-cli.sh
      # For Cygwin, switch paths to Windows format before running java
      if $cygwin; then
          JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
          JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
          JBOSS_MODULEPATH=`cygpath --path --windows "$JBOSS_MODULEPATH"`
      fi
      

      PS: I searched for similar cli issues in the issue tracker, but couldn't find any issue.

              olubyans@redhat.com Alexey Loubyansky
              dpalic_jira Darko Palic (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified