Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7060

run.conf.bat is ignored when placed inside a server profile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.1
    • Scripts and Commands
    • None
    • Windows

    • Hide

      Copy the run.conf.bat to the default directory and add or update it. Start JBoss and the settings will be ignored.

      Show
      Copy the run.conf.bat to the default directory and add or update it. Start JBoss and the settings will be ignored.
    • Hide

      This can also be applied as the fix for this, update the run.conf.bat with the following

      rem Findout about actual configuration
      set JBOSSCONF=production
      :Loop
      IF "%~1"=="" GOTO Continue
      if "%~1" == "-c" set JBOSSCONF=%~2
      if "%~1" == "-configuration" set JBOSSCONF=%~2
      SHIFT
      GOTO Loop

      :Continue

      rem Read an optional configuration file.
      if "x%RUN_CONF%" == "x" (
      if exist %DIRNAME%\..\server%JBOSSCONF%\run.conf.bat (
      set "RUN_CONF=%DIRNAME%\..\server%JBOSSCONF%\run.conf.bat"
      ) else (
      set "RUN_CONF=%DIRNAME%run.conf.bat"
      )
      )

      if exist "%RUN_CONF%" (
      echo Calling %RUN_CONF%
      call "%RUN_CONF%" %*
      ) else (
      echo Config file not found %RUN_CONF%
      )

      Show
      This can also be applied as the fix for this, update the run.conf.bat with the following rem Findout about actual configuration set JBOSSCONF=production :Loop IF "%~1"=="" GOTO Continue if "%~1" == "-c" set JBOSSCONF=%~2 if "%~1" == "-configuration" set JBOSSCONF=%~2 SHIFT GOTO Loop :Continue rem Read an optional configuration file. if "x%RUN_CONF%" == "x" ( if exist %DIRNAME%\..\server%JBOSSCONF%\run.conf.bat ( set "RUN_CONF=%DIRNAME%\..\server%JBOSSCONF%\run.conf.bat" ) else ( set "RUN_CONF=%DIRNAME%run.conf.bat" ) ) if exist "%RUN_CONF%" ( echo Calling %RUN_CONF% call "%RUN_CONF%" %* ) else ( echo Config file not found %RUN_CONF% )
    • Not Required
    • NEW

      As per the documentation [1]

      "You may elect to copy the global run.conf or run.conf.bat file from jboss-as/bin/ to the server profile (for example: jboss-as/server/production/run.conf ), and make the configuration changes there. A configuration file in the server profile takes precedence over the global run.conf / run.conf.bat file when the server profile is started."

      This doesn't work because the run.bat never attempts to look for the run.conf.bat file inside any of the server profile directories.

      [1] http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/5/html/Security_Guide/chap-Java_EE_Security_Manager.html#note_on_config_file

            tfonteyn Tom Fonteyne (Inactive)
            rhn-support-mus Mustafa Musaji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: