Same log4j2 configutation for all MyCoRe-Applications in same Tomcat

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

...
}}

Environment

SLES11.4, Tomcat 8

Assignee

Thomas Scheffler

Reporter

Hinnerk Rümenapf

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

High
Configure