Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1063289

Summary: [QE] (6.3.0) Wrong handling of --debug argument by standalone.[sh|bat] scripts
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Tomaz Cerar <tcerar>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: fnasser, jmesnil, kkhan, ochaloup, pgier
Target Milestone: DR2   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1072227 (view as bug list) Environment:
Last Closed: 2014-08-06 14:36:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1072227, 1072228    

Description Petr Kremensky 2014-02-10 12:24:27 UTC
Description of problem:
 Standalone server start script is handling --debug argument in wrong manner. Port 8787 should be used by default, but it isn't.

Version-Release number of selected component (if applicable):
 EAP 6.2.0

How reproducible:
 Always

Steps to Reproduce:
 1. Navigate into $EAP_HOME/bin directory.
 2. Run: standalone.[sh|bat] --debug 

Actual results:
- shell script
 Server fail to with following error:
 ERROR [stderr] (main) JBAS015801: Invalid option ''
- batch script
 random empty port is used

Expected results:
 Server will start with debugger attached to 8787 port.

Additional info:
 Workaround: always specify the port number.

Comment 1 Permaine Cheung 2014-02-10 14:12:30 UTC
Brian, please look into this. Thanks!

Comment 4 Brian Stansberry 2014-03-04 19:56:16 UTC
*** Bug 1064763 has been marked as a duplicate of this bug. ***

Comment 5 Petr Kremensky 2014-03-07 07:39:10 UTC
The issue still exists for standalone.bat script. Running 
>standalone.bat --debug
won't use default (8787). Different port is used every time.

Comment 6 Jeff Mesnil 2014-03-07 09:03:00 UTC
I don't have access to a Windows box to fix the standalone.bat script.

Comment 7 Petr Kremensky 2014-07-09 08:04:31 UTC
Verified on EAP 6.3.0.ER9.

Closing this one as I found BZ928888 which is covering the batch scripts. Solaris/Hp-ux should be covered by BZ1064763.

RHEL is working fine.