Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-3342

run.bat change in behavior

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.2.0.ER3
    • Fix Version/s: 5.2.0.ER4, 5.2.0 GA
    • Component/s: EAP
    • Labels:
      None
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Not Required

      Description

      With SOA-P 5.1 it was possible to start SOA-P on windows being in the jboss server directory and running:

      bin\run.bat ...

      Now this fails:

      Config file not found run.conf.bat
      Could not locate "W:\workspace\soa-scripts-matrix\ef9b46c5\jbosssoa-standalone\bin\run.jar".
      Please check that you are in the bin directory when running this script.

      Seems like script now requires to execute from bin\. I see the following changes between 5.1 and 5.2:

      $ diff -u run.bat.5.1 run.bat
      --- run.bat.5.1 2011-09-01 15:26:32.000000000 +0300
      +++ run.bat     2011-09-01 15:27:16.000000000 +0300
      @@ -3,13 +3,13 @@
       rem JBoss Bootstrap Script for Windows
       rem -------------------------------------------------------------------------
       
      -rem $Id: run.bat 105675 2010-06-03 17:10:14Z permaine $
      +rem $Id: run.bat 110811 2011-03-01 22:35:51Z rachmatowicz@jboss.com $
       
       @if not "%ECHO%" == ""  echo %ECHO%
      -@if "%OS%" == "Windows_NT" setlocal
      +@if "%OS%" == "Windows_NT" setlocal enableextensions enabledelayedexpansion
       
       if "%OS%" == "Windows_NT" (
      -  set "DIRNAME=%~dp0%"
      +  set "DIRNAME=!~dp0!"
       ) else (
         set DIRNAME=.\
       )
      @@ -39,6 +39,9 @@
         set "PROGNAME=run.bat"
       )
       
      +REM Force use of IPv4 stack
      +set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true
      +
       rem Setup JBoss specific properties
       set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%

      If this cannot be reverted or fixed for some reason I think that it at least deserves release notes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcoleman Julian Coleman
              Reporter:
              akostadinov Aleksandar Kostadinov
              Writer:
              David Le Sage David Le Sage (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: