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

Bug 619386

Summary: When installing jboss as a service under x86 foder, service will fail.
Product: [JBoss] JBoss Enterprise Application Platform 5 Reporter: Doron Fediuck <dfediuck>
Component: jbossasAssignee: Fernando Nasser <fnasser>
Status: CLOSED UPSTREAM QA Contact:
Severity: urgent Docs Contact:
Priority: high    
Version: 5.0.0CC: lpeer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:13:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Doron Fediuck 2010-07-29 12:49:47 UTC
Description of problem:
We install JBoss as a part of RHEV-M product on Windows 2008.
Since the application is not fully 64bit, customer may want to install
it under the C:\Program Files (x86) directory, which is where 32bit
applications should be. In this scenario, if you install JBoss as
a Windows service, the service will fail to start with no error given.
The error could be found in the run.log file, and also Manually running the run batch-
C:\Program Files (x86)\RedHat\RHEVManager\jboss-eap-5.0\jboss-as\bin\run.bat
shows the following error:
\RedHat\RHEVManager\jboss-eap-5.0\jboss-as\bin\run.conf.bat was unexpected at this time.

Further debugging shows the following line in run.bat fail:
if exist "%RUN_CONF%" (
The problem is that the variable is expanded, holding (x86) which
causes the "if exist" to fail wrongly. 

How reproducible:
See my description.

Steps to Reproduce:
1. Deploy JBoss under C:\Program Files (x86)\RedHat\RHEVManager\
2. Install JBoss as a service.
3. Try to start the service.
  
Actual results:
Service won't start.

Expected results:
Service should start.

Additional info:
A fix to the run.bat:
Add the following line above the if exist line-
set RUN_CONF=%RUN_CONF:Program Files (x86)=PROGRA~2%

This would use the short form and avoid the problem.

Comment 1 Mark Babayev 2010-08-05 11:58:20 UTC
fix applied to run.bat

Comment 2 Mark Babayev 2010-08-05 12:21:39 UTC
status changed by mistake.
reverted back to NEW.

Comment 3 Red Hat Bugzilla 2025-02-10 03:13:31 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.