Bug 780885 (SOA-3342) - run.bat change in behavior
Summary: run.bat change in behavior
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3342
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EAP
Version: 5.2.0.ER3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0 GA,5.2.0.ER4
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-01 12:54 UTC by Aleksandar Kostadinov
Modified: 2011-10-21 09:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
windows
Last Closed: 2011-10-21 09:10:06 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBPAPP-7114 0 None None None Never
Red Hat Issue Tracker SOA-3342 0 None None None Never

Description Aleksandar Kostadinov 2011-09-01 12:54:46 UTC
Affects: Release Notes
project_key: SOA

With SOA-P 5.1 it was possible to start SOA-P on windows being in the jboss server directory and running:
bq. bin\run.bat ...

Now this fails:{code}
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.{code}

Seems like script now requires to execute from bin\. I see the following changes between 5.1 and 5.2:
{code}$ 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 $
 
 @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%{code}

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

Comment 1 John Graham 2011-09-01 13:12:35 UTC
For investigation in 5.2.

Comment 2 Julian Coleman 2011-09-01 13:46:22 UTC
Link: Added: This issue Cloned to SOA-3343


Comment 3 Julian Coleman 2011-09-01 13:48:29 UTC
Link: Added: This issue depends JBPAPP-7114


Comment 4 Aleksandar Kostadinov 2011-09-02 11:20:06 UTC
I changed the test script to s/!~dp0!/%~dp0%/ and this fizes the issue.

Comment 5 Aleksandar Kostadinov 2011-09-02 11:26:12 UTC
I see this is a known issue for EAP 5.1.1, I wonder why is it marked as minor though.

Comment 6 Aleksandar Kostadinov 2011-09-02 11:26:12 UTC
Link: Added: This issue depends JBPAPP-6920


Comment 7 Aleksandar Kostadinov 2011-09-02 11:26:46 UTC
Here is the issue: JBPAPP-6920

Comment 8 Douglas Palmer 2011-09-02 13:29:47 UTC
Fixed in SOA-P; still needs to be fixed in EAP.

Comment 9 Douglas Palmer 2011-09-02 13:29:47 UTC
Release Notes Docs Status: Added: Not Required


Comment 10 David Le Sage 2011-09-07 23:20:51 UTC
Writer: Added: dlesage


Comment 11 Martin Vecera 2011-10-21 09:10:06 UTC
Verified with 5.2.ER5


Note You need to log in before you can comment on or make changes to this bug.