Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8716

run.conf.bat options lost if JBoss run as a Windows Service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • No Release
    • JBossAS-5.1.0.GA
    • Other, System service
    • None
    • Low
    • Workaround Exists
    • Hide

      Remove "if not "x%JAVA_OPTS%" == "x" goto JAVA_OPTS_SET" in "run.conf.bat", set "set JAVA_OPTS=-server" in new "run.console.bat" and call "run.bat" to be consistent with service mode.

      Show
      Remove "if not "x%JAVA_OPTS%" == "x" goto JAVA_OPTS_SET" in "run.conf.bat", set "set JAVA_OPTS=-server" in new "run.console.bat" and call "run.bat" to be consistent with service mode.
    • Hide

      1. Unzip the AS
      2. Install it as a Windows Service "service.bat install"
      3. Run the service in "Services"
      4. Make sure no options set in run.conf.bat are really applied

      Show
      1. Unzip the AS 2. Install it as a Windows Service "service.bat install" 3. Run the service in "Services" 4. Make sure no options set in run.conf.bat are really applied

      If the service is run by jbosssvc.exe then JAVA_OPTS is predefined and set to "-server". So if JBoss is run as a service the command "if not "x%JAVA_OPTS%" == "x" goto JAVA_OPTS_SET" in "run.conf.bat" never allows to continue and set all other options.

              Unassigned Unassigned
              virtualvat_jira Vitaliy Tkachenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: