Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-20448

[GSS](7.3.z) WFCORE-5252 - Log WARN if wildfly.config.url is set on the server.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.3.6.CR1, 7.3.6.GA
    • 7.3.3.GA
    • Server
    • None

      -Dwildfly.config.url=wildfly-config.xml can be set to specify configuration to be used , this should typically only be used for a standalone JVM application, not when running EAP. If this system property is set when starting EAP, it will overrule the configuration in the JBoss Profile xml. Logging a WARN when this is set inside of EAP would warn the user that their JBoss Profile xml configuration is not being used.

      Steps to test:

      • Create wildfly-config.xml (example attached) in JBOSS_HOME
      • Start the server: ./standalone.sh -Dwildfly.config.url=wildfly-config.xml
      • Verify that the following warning is in server.log
        2021-01-23 09:41:04,669 WARN  [org.jboss.as.config] (MSC service thread 1-2) WFLYSRV0281: System property wildfly.config.url = wildfly-config.xml is set. This should only be used for standalone clients. Setting this on the server will override your profile configuration.
        

              rhn-support-ivassile Ilia Vassilev
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: