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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.GA
    • Fix Version/s: No Release
    • Component/s: Other, System service
    • Labels:
      None
    • Environment:

      Any Windows

    • Steps to Reproduce:
      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
    • Workaround:
      Workaround Exists
    • Workaround Description:
      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.
    • Estimated Difficulty:
      Low

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                VirtualVAT Vitaliy Tkachenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: