Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1756

Launch of standalone.bat and domain.bat from path with ')' (like (x86)) does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.Beta1
    • 7.0.0.Final, 7.0.1.Final
    • Scripts
    • None
    • Hide

      Change content of standalone.bat and domain.bat:

      @if "%OS%" == "Windows_NT" setlocal
      -->
      @if "%OS%" == "Windows_NT" setlocal enableextensions enabledelayedexpansion

      set "DIRNAME=%~dp0%"
      -->
      set "DIRNAME=!~dp0!"

      Disadvantage:
      You must be always in bin directory when calling standalone.bat or domain.bat.

      If you try to call standalone.bat you will see something like this:

      C:\Documents and Settings\userXXX>"W:\rsvoboda\path(x86)\jboss-as-7.0.1.Final\bin\standalone.bat"
      Config file not found standalone.conf.bat
      Could not locate "C:\Documents and Settings\jboss-modules.jar".
      Please check that you are in the bin directory when running this script.
      Press any key to continue . . .
      
      Show
      Change content of standalone.bat and domain.bat: @if "%OS%" == "Windows_NT" setlocal --> @if "%OS%" == "Windows_NT" setlocal enableextensions enabledelayedexpansion set "DIRNAME=%~dp0%" --> set "DIRNAME=!~dp0!" Disadvantage: You must be always in bin directory when calling standalone.bat or domain.bat. If you try to call standalone.bat you will see something like this: C:\Documents and Settings\userXXX> "W:\rsvoboda\path(x86)\jboss-as-7.0.1.Final\bin\standalone.bat" Config file not found standalone.conf.bat Could not locate "C:\Documents and Settings\jboss-modules.jar" . Please check that you are in the bin directory when running this script. Press any key to continue . . .

    Description

      Can't start standalone server or domain if character ')' is present in path - for example 'Program Files (x86)'.

      Property DIRNAME is not correctly resolved.

      W:\rsvoboda\path(x86)\jboss-as-7.0.1.Final\bin>standalone.bat
      \jboss-as-7.0.1.Final\bin\standalone.conf.bat was unexpected at this time.
      

      Attachments

        Activity

          People

            rsvoboda@redhat.com Rostislav Svoboda
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: