Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1327

JMX setting for ConfigLocationUri are rewriten after change to a invalid Path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: JMX
    • Labels:
      None

      Description

      The ConfigLocationUri is editable in the Mbean, but the behavior is a bit strange. If I type in the correct location e.g. file:/opt/tomcat /apache-tomcat/conf/log4j2.xml it correctly (re-)load the file once. But afterwards the “ConfigLocationUri” has automatically changed to file:/opt/tomcat/apache-tomcat/bin/file:/opt/tomcat/apache-tomcat/conf/log4j2.xml which is no longer a valid path. So it seems to log4j prefixes file:/opt/tomcat/apache-tomcat/bin/ (this folder is the root folder where tomcat was started from) to my input, which is no longer a valid path.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thopap Thomas Papke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: