Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6920

in 5.1.1 run.bat has typos that prevent finding run.conf.bat when not executed from the bin directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.1
    • Fix Version/s: EAP_EWP 5.2.0
    • Component/s: Other
    • Labels:
    • Environment:

      windows

    • Steps to Reproduce:
      Hide

      start run.bat from out side the bin directory

      Show
      start run.bat from out side the bin directory
    • Affects:
      Release Notes
    • Workaround Description:
      Hide

      edit run.bat, and correct line 12 to read: set "DIRNAME=%~dp0%"

      Show
      edit run.bat, and correct line 12 to read: set "DIRNAME=%~dp0%"
    • Estimated Difficulty:
      Low
    • Release Notes Text:
      Hide
      A syntax error was discovered in the <filename>run.bat</filename> batch file distributed with JBoss Enterprise Application Server 5.1.1. When run on Windows Server, if <filename>bin</filename> directory was not the current directory, <filename>run.bat</filename> failed to call the associated <filename>run.conf.bat</filename>. The batch file has now been corrected and <filename>run.conf.bat</filename> is called as intended.
      Show
      A syntax error was discovered in the <filename>run.bat</filename> batch file distributed with JBoss Enterprise Application Server 5.1.1. When run on Windows Server, if <filename>bin</filename> directory was not the current directory, <filename>run.bat</filename> failed to call the associated <filename>run.conf.bat</filename>. The batch file has now been corrected and <filename>run.conf.bat</filename> is called as intended.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      Line 12 of run.bat as delivered with JBoss EAP 5.1.1:

      set "DIRNAME=!~dp0!"

      Of course this should be:

      set "DIRNAME=%~dp0%"

      This prevents run.bat to find the run.conf.bat file when not executed from within the actual bin directory

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tfonteyn Tom Fonteyne
                  Reporter:
                  tfonteyn Tom Fonteyne
                  Writer:
                  Russell Dickenson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: