Bug 1293795 - [GSS] (6.4.z) Can't stop JBoss service on windows when passing /jbosspass option which contains '!' in a service install command
Summary: [GSS] (6.4.z) Can't stop JBoss service on windows when passing /jbosspass opt...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: jbossas
Version: 6.4.5
Hardware: Unspecified
OS: Windows
unspecified
medium
Target Milestone: ---
: ---
Assignee: Vlado Pakan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-23 05:53 UTC by sfu@redhat.com
Modified: 2019-09-12 09:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-12 09:53:13 UTC
Type: Bug


Attachments (Terms of Use)

Description sfu@redhat.com 2015-12-23 05:53:48 UTC
Description of problem:

Can't stop JBoss service on windows when passing /jbosspass option which contains '!' in a service install command,it shows: Error 1053 The service did not respond to the start or control request in a timely fashion.

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


How reproducible:
always


Steps to Reproduce:
1.Install JBoss EAP 6.4.5 and Native Utilities for Windows Server x86_64 
2.Create a jboss user with add-user.bat,(jbossadmin/Redhat!23) note:please use'!' in the password.
3.Install EAP as a window service with command: C:\jboss-eap-6.4\modules\system\layers\base\native\sbin>service.bat install /jbossuser jbossadmin /jbosspass Redhat!23 /loglevel DEBUG /debug /startup
4.start EAP 6 service and stop it,error will appear.

Actual results:
Can't stop it and error appears.

Expected results:
Can stop it successfully.

Additional info:
Use regedit.exe and export (as TXT!) the branch "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation" we can see the '!' missing from the --password=Redhat23 ,it's the root cause of this issue,if the jboss user pwd doesn't use '!',it can be stopped normally.

registry.txt:
---------------------
Value 2
  Name:    Params
  Type:    REG_MULTI_SZ
  Data:    /c jboss-cli.bat --controller=localhost:9999 --connect --uesr=jbossadmin --password=Redhat23 --command=:shutdown


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