Uploaded image for project: 'MyCoRe'
  1. MCR-1240

Same log4j2 configutation for all MyCoRe-Applications in same Tomcat

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2015.11, 2016.02
    • Fix Version/s: 2016.06.0
    • Component/s: mycore-base
    • Labels:
      None
    • Environment:

      SLES11.4, Tomcat 8

      Description

      The log4j2 configuration of the MyCoRe-application started first is used for all MyCoRe-applications started afterwards in the same Tomcat instance.

      Excerpt from log file:
      {{
      ...
      INFO | jvm 1 | 2016/04/04 15:06:18 | 2016-04-04T15:06:18,835 INFO
      MCRConfigurationInputStream: Current configuration directory:
      /home/tomcat/.mycore/epidb
      INFO | jvm 1 | 2016/04/04 15:06:19 | 2016-04-04T15:06:19,275 INFO
      MCRConfigurationInputStream: Loading additional properties from
      /home/tomcat/.mycore/epidb/mycore.properties
      INFO | jvm 1 | 2016/04/04 15:06:19 | Using Log4J2 configuration at:
      file:/home/tomcat/.mycore/epidb/resources/log4j2.xml
      ...
      INFO | jvm 1 | 2016/04/04 15:07:46 | [epidb] INFO
      MCRConfigurationInputStream: Current configuration directory:
      /home/tomcat/.mycore/lexm2016
      INFO | jvm 1 | 2016/04/04 15:07:46 | [epidb] INFO
      MCRConfigurationInputStream: Loading additional properties from
      /home/tomcat/.mycore/lexm2016/mycore.properties
      INFO | jvm 1 | 2016/04/04 15:07:46 | Using Log4J2 configuration at:
      file:/home/tomcat/.mycore/epidb/resources/log4j2.xml
      ...
      INFO | jvm 1 | 2016/04/04 15:07:53 | [epidb] INFO
      MCRConfigurationInputStream: Current configuration directory:
      /home/tomcat/.mycore/netamil2
      INFO | jvm 1 | 2016/04/04 15:07:54 | [epidb] INFO
      MCRConfigurationInputStream: Loading additional properties from
      /home/tomcat/.mycore/netamil2/mycore.properties
      INFO | jvm 1 | 2016/04/04 15:07:54 | Using Log4J2 configuration at:
      file:/home/tomcat/.mycore/epidb/resources/log4j2.xml
      ...
      INFO | jvm 1 | 2016/04/04 15:08:01 | [epidb] INFO
      MCRConfigurationInputStream: Current configuration directory:
      /home/tomcat/.mycore/gwin
      INFO | jvm 1 | 2016/04/04 15:08:01 | [epidb] INFO
      MCRConfigurationInputStream: Loading additional properties from
      /home/tomcat/.mycore/gwin/mycore.properties
      INFO | jvm 1 | 2016/04/04 15:08:01 | Using Log4J2 configuration at:
      file:/home/tomcat/.mycore/epidb/resources/log4j2.xml

      ...
      }}

        Attachments

          Activity

            People

            • Assignee:
              yagee Thomas Scheffler
              Reporter:
              hinnerkr Hinnerk Rümenapf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: