logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Magnusson <alexander.magnus...@netset.com>
Subject A second configuration is loaded and overwrites mine
Date Mon, 25 Jun 2018 08:33:43 GMT
Hello!

Setup:
Embedded tomcat 8.5.31
Log4j2 api/core/web 2.11.0
Disruptor 3.3.6

>From my understanding by running in a web context scenario (my problem is
in an embedded Tomcat 8.5.31) the log4j2.xml file needs only to be put into
the web/WEB-INF/ folder for it to be read and the rest of the configuration
should happen as normal. I've got this working perfectly fine in another
web application project, but I can't get this to work properly.

By setting the debug flag I can see that the file is read and correctly
parsed but after that there seems to be a different logger (probably the
default one?) that gets configured and overwrites my included config, thus
only printing ERROR level. If i point the configurationFile flag to the
file it only loads my file and it works perfectly, so I'm guessing I am
missing something, but what?

In the status trace I find both:
DEBUG StatusLogger LoggerContext[name=/dk,
org.apache.logging.log4j.core.LoggerContext@4212f9a6] started OK with
configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml].
and a few lines after that it seems to restart the configuration process:

DEBUG StatusLogger Starting LoggerContext[name=18b4aac2,
org.apache.logging.log4j.core.LoggerContext@4834368c]...
DEBUG StatusLogger Reconfiguration started for context[name=18b4aac2] at
URI null (org.apache.logging.log4j.core.LoggerContext@4834368c) with
optional ClassLoader: null


My log4j2.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn" monitorInterval="5"
packages="se.netset.log.log4j2" xmlns:xi="http://www.w3.org/2001/XInclude">
    <Appenders>
        <Console name="CONSOLEWARN" target="SYSTEM_ERR">
            <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS}:
%l%n              %msg%n}"/>
            <ThresholdFilter level="WARN" onMatch="ACCEPT"
onMismatch="DENY"/>
        </Console>
        <Console name="CONSOLEINFO" target="SYSTEM_OUT">
            <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS}: %msg%n}"/>
            <ThresholdFilter level="WARN" onMatch="DENY"
onMismatch="ACCEPT"/>
        </Console>
        <Null name="devnull"/>
    </Appenders>
    <xi:include href="test-appenders.xml">
        <xi:fallback/>
    </xi:include>
    <Loggers>
        <AsyncLogger name="com.zaxxer.hikari" level="DEBUG"
additivity="false">
            <AppenderRef ref="devnull"/>
        </AsyncLogger>
        <AsyncRoot level="info" includeLocation="true">
            <Property name="m4dump">true</Property>
            <AppenderRef ref="CONSOLEWARN" level="WARN"/>
            <AppenderRef ref="CONSOLEINFO" level="info"/>
        </AsyncRoot>
    </Loggers>
    <xi:include href="test-loggers.xml">
        <xi:fallback/>
    </xi:include>
</Configuration>


The whole startup trace:

Connected to the target VM, address: '127.0.0.1:38561', transport: 'socket'
Starting Apache Tomcat/8.5.31
 starting [/dk] from [/home/alexanderm/workspace/project_name/web/]
 starting [/static] from [/home/alexanderm/workspace/project_name/static/]
DEBUG StatusLogger Log4jServletContainerInitializer starting up Log4j in
Servlet 3.0+ environment.
DEBUG StatusLogger Using ShutdownCallbackRegistry class
org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry
DEBUG StatusLogger Using the servlet context name "null".
DEBUG StatusLogger Using the servlet context context-path "/dk".
DEBUG StatusLogger getConfigURI found resource paths [/WEB-INF/log4j2.xml]
in servletContext at [/WEB-INF/]
DEBUG StatusLogger getConfigURI found resource
[file:/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml] in
servletContext at [/WEB-INF/log4j2.xml]
DEBUG StatusLogger Took 0.067673 seconds to load 207 plugins from
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2

DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-1
DEBUG StatusLogger PluginManager 'ConfigurationFactory' found 4 plugins
DEBUG StatusLogger Missing dependencies for Yaml support,
ConfigurationFactory
org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory is
inactive
DEBUG StatusLogger Using configurationFactory
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@42630297
[Warning] log4j2.xml:14:40: Include operation failed, reverting to
fallback. Resource error reading file as XML (href='test-appenders.xml').
Reason:
/home/alexanderm/workspace/project_name/web/WEB-INF/test-appenders.xml (No
such file or directory)
[Warning] log4j2.xml:27:38: Include operation failed, reverting to
fallback. Resource error reading file as XML (href='test-loggers.xml').
Reason:
/home/alexanderm/workspace/project_name/web/WEB-INF/test-loggers.xml (No
such file or directory)
DEBUG StatusLogger Watching file
'/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml' for
lastModified Thu Jun 21 14:06:26 CEST 2018 (1529582786000)
DEBUG StatusLogger Starting LoggerContext[name=/dk] from configuration at
file:/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml
DEBUG StatusLogger Starting LoggerContext[name=/dk,
org.apache.logging.log4j.core.LoggerContext@4212f9a6] with configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml]...
DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
DEBUG StatusLogger Initializing configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml]
DEBUG StatusLogger Installed 2 script engines
DEBUG StatusLogger Oracle Nashorn version: 1.8.0_171, language: ECMAScript,
threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js,
JS, JavaScript, javascript, ECMAScript, ecmascript], factory class:
jdk.nashorn.api.scripting.NashornScriptEngineFactory
DEBUG StatusLogger Caucho Quercus Script Engine version: 4.0.46, language:
php, threading: THREAD-ISOLATED, compile: true, names: [quercus, php],
factory class: com.caucho.quercus.script.QuercusScriptEngineFactory
INFO StatusLogger Scanning for classes in
'/home/alexanderm/workspace/out/production/module_main/se/netset/log/log4j2'
matching criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.NetsetContextDataInjector matches criteria annotated
with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionDataMessageFilter matches
criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ProjectSpecificDataExtactor matches
criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionAppLayout matches criteria
annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionDataMessage matches criteria
annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionAppLogUtil$GeneratedExceptionType
matches criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionAppLogUtil matches criteria
annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionDataMessage$ExceptionDataMessageBuilder
matches criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionAppLogUtil$ExceptionDataType
matches criteria annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionAppLogUtil$1 matches criteria
annotated with @Plugin
DEBUG StatusLogger Checking to see if class
se.netset.log.log4j2.exceptionapp.ExceptionDataMessage$1 matches criteria
annotated with @Plugin
DEBUG StatusLogger Checking to see if class se.netset.log.log4j2.Log4j2Util
matches criteria annotated with @Plugin
DEBUG StatusLogger Took 0.005649 seconds to load 2 plugins from package
se.netset.log.log4j2
DEBUG StatusLogger PluginManager 'Core' found 119 plugins
DEBUG StatusLogger PluginManager 'Level' found 0 plugins
DEBUG StatusLogger PluginManager 'Lookup' found 14 plugins
DEBUG StatusLogger Building Plugin[name=layout,
class=org.apache.logging.log4j.core.layout.PatternLayout].
TRACE StatusLogger TypeConverterRegistry initializing.
DEBUG StatusLogger PluginManager 'TypeConverter' found 26 plugins
DEBUG StatusLogger
PatternLayout$Builder(pattern="%highlight{%d{HH:mm:ss.SSS}:
%l%n              %msg%n}", PatternSelector=null,
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
Replace=null, charset="null", alwaysWriteExceptions="null",
disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
DEBUG StatusLogger Building Plugin[name=filter,
class=org.apache.logging.log4j.core.filter.ThresholdFilter].
DEBUG StatusLogger createFilter(level="WARN", onMatch="ACCEPT",
onMismatch="DENY")
DEBUG StatusLogger Building Plugin[name=appender,
class=org.apache.logging.log4j.core.appender.ConsoleAppender].
DEBUG StatusLogger ConsoleAppender$Builder(target="SYSTEM_ERR",
follow="null", direct="null", bufferedIo="null", bufferSize="null",
immediateFlush="null", ignoreExceptions="null",
PatternLayout(%highlight{%d{HH:mm:ss.SSS}: %l%n              %msg%n}),
name="CONSOLEWARN",
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
ThresholdFilter(WARN))
DEBUG StatusLogger Starting OutputStreamManager SYSTEM_ERR.false.false
DEBUG StatusLogger Building Plugin[name=layout,
class=org.apache.logging.log4j.core.layout.PatternLayout].
DEBUG StatusLogger
PatternLayout$Builder(pattern="%highlight{%d{HH:mm:ss.SSS}: %msg%n}",
PatternSelector=null,
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
Replace=null, charset="null", alwaysWriteExceptions="null",
disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
DEBUG StatusLogger Building Plugin[name=filter,
class=org.apache.logging.log4j.core.filter.ThresholdFilter].
DEBUG StatusLogger createFilter(level="WARN", onMatch="DENY",
onMismatch="ACCEPT")
DEBUG StatusLogger Building Plugin[name=appender,
class=org.apache.logging.log4j.core.appender.ConsoleAppender].
DEBUG StatusLogger ConsoleAppender$Builder(target="SYSTEM_OUT",
follow="null", direct="null", bufferedIo="null", bufferSize="null",
immediateFlush="null", ignoreExceptions="null",
PatternLayout(%highlight{%d{HH:mm:ss.SSS}: %msg%n}), name="CONSOLEINFO",
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
ThresholdFilter(WARN))
DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false
DEBUG StatusLogger Building Plugin[name=appender,
class=org.apache.logging.log4j.core.appender.NullAppender].
DEBUG StatusLogger createAppender(name="devnull")
DEBUG StatusLogger Building Plugin[name=appenders,
class=org.apache.logging.log4j.core.config.AppendersPlugin].
DEBUG StatusLogger createAppenders(={CONSOLEWARN, CONSOLEINFO, devnull})
DEBUG StatusLogger Building Plugin[name=AppenderRef,
class=org.apache.logging.log4j.core.config.AppenderRef].
DEBUG StatusLogger createAppenderRef(ref="devnull", level="null",
Filter=null)
DEBUG StatusLogger Building Plugin[name=asyncLogger,
class=org.apache.logging.log4j.core.async.AsyncLoggerConfig].
DEBUG StatusLogger createLogger(additivity="false", level="DEBUG",
name="com.zaxxer.hikari", includeLocation="null", ={devnull}, ={},
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
Filter=null)
DEBUG StatusLogger Building Plugin[name=property,
class=org.apache.logging.log4j.core.config.Property].
DEBUG StatusLogger createProperty(name="m4dump", value="true")
DEBUG StatusLogger Building Plugin[name=AppenderRef,
class=org.apache.logging.log4j.core.config.AppenderRef].
DEBUG StatusLogger createAppenderRef(ref="CONSOLEWARN", level="WARN",
Filter=null)
DEBUG StatusLogger Building Plugin[name=AppenderRef,
class=org.apache.logging.log4j.core.config.AppenderRef].
DEBUG StatusLogger createAppenderRef(ref="CONSOLEINFO", level="INFO",
Filter=null)
DEBUG StatusLogger Building Plugin[name=asyncRoot,
class=org.apache.logging.log4j.core.async.AsyncLoggerConfig$RootLogger].
DEBUG StatusLogger createLogger(additivity="null", level="info",
includeLocation="true", ={CONSOLEWARN, CONSOLEINFO}, ={m4dump=true},
Configuration(/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml),
Filter=null)
DEBUG StatusLogger Building Plugin[name=loggers,
class=org.apache.logging.log4j.core.config.LoggersPlugin].
DEBUG StatusLogger createLoggers(={com.zaxxer.hikari, root})
DEBUG StatusLogger Configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml]
initialized
DEBUG StatusLogger Starting configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml]
DEBUG StatusLogger Log4j2 ConfigurationScheduler starting 1 threads
TRACE StatusLogger AsyncLoggerConfigDisruptor creating new disruptor for
this configuration.
TRACE StatusLogger property AsyncLoggerConfig.WaitStrategy=TIMEOUT
DEBUG StatusLogger Starting AsyncLoggerConfig disruptor for this
configuration with ringbufferSize=262144,
waitStrategy=TimeoutBlockingWaitStrategy,
exceptionHandler=org.apache.logging.log4j.core.async.AsyncLoggerConfigDefaultExceptionHandler@2a5d4899.
..
TRACE StatusLogger AsyncLoggerConfig[root] starting...
TRACE StatusLogger AsyncLoggerConfig[com.zaxxer.hikari] starting...
DEBUG StatusLogger Started configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml]
OK.
TRACE StatusLogger Stopping
org.apache.logging.log4j.core.config.DefaultConfiguration@6ca38878...
TRACE StatusLogger DefaultConfiguration notified 1 ReliabilityStrategies
that config will be stopped.
TRACE StatusLogger DefaultConfiguration stopping root LoggerConfig.
TRACE StatusLogger DefaultConfiguration notifying ReliabilityStrategies
that appenders will be stopped.
TRACE StatusLogger DefaultConfiguration stopping remaining Appenders.
DEBUG StatusLogger Shutting down OutputStreamManager
SYSTEM_OUT.false.false-1
DEBUG StatusLogger Shut down OutputStreamManager SYSTEM_OUT.false.false-1,
all resources released: true
DEBUG StatusLogger Appender DefaultConsole-1 stopped with status true
TRACE StatusLogger DefaultConfiguration stopped 1 remaining Appenders.
TRACE StatusLogger DefaultConfiguration cleaning Appenders from 1
LoggerConfigs.
DEBUG StatusLogger Stopped
org.apache.logging.log4j.core.config.DefaultConfiguration@6ca38878 OK
TRACE StatusLogger Reregistering MBeans after reconfigure.
Selector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector@4c88b24e
TRACE StatusLogger Reregistering context (1/1): '/dk'
org.apache.logging.log4j.core.LoggerContext@4212f9a6
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=StatusLogger'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=ContextSelector'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=Loggers,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=Appenders,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=AsyncAppenders,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=AsyncLoggerRingBuffer'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=Loggers,name=*,subtype=RingBuffer'
DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=/dk
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=StatusLogger
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=ContextSelector
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=,subtype=RingBuffer
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari,subtype=RingBuffer
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEWARN
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEINFO
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=devnull
TRACE StatusLogger Using default SystemClock for timestamps.
DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock does not
support precise timestamps.
TRACE StatusLogger Using DummyNanoClock for nanosecond timestamps.
DEBUG StatusLogger LoggerContext[name=/dk,
org.apache.logging.log4j.core.LoggerContext@4212f9a6] started OK with
configuration
XmlConfiguration[location=/home/alexanderm/workspace/project_name/web/WEB-INF/log4j2.xml].
Jun 25, 2018 9:49:10 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-2
DEBUG StatusLogger Starting LoggerContext[name=18b4aac2,
org.apache.logging.log4j.core.LoggerContext@4834368c]...
DEBUG StatusLogger Reconfiguration started for context[name=18b4aac2] at
URI null (org.apache.logging.log4j.core.LoggerContext@4834368c) with
optional ClassLoader: null
DEBUG StatusLogger Using configurationFactory
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@42630297
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.properties] using
context class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.properties] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.properties] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.properties] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yml] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yaml] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yaml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yaml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.yaml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.json] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.json] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.json] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.json] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.jsn] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.jsn] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.jsn] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.jsn] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.xml] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.xml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.xml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test18b4aac2.xml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.properties] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.properties] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.properties] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.properties] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.yml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.yml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.yml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.yml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.yaml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.yaml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.yaml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.yaml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.json] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.json] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.json] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.json] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.jsn] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.jsn] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.jsn] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.jsn] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2-test.xml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2-test.xml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2-test.xml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2-test.xml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.properties] using context
class loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.properties] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.properties] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.properties] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.yml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.yml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.yml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.yml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.yaml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.yaml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.yaml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.yaml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.json] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.json] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.json] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.json] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.jsn] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.jsn] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.jsn] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.jsn] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j218b4aac2.xml] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j218b4aac2.xml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.xml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j218b4aac2.xml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.properties] using context class
loader ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.properties] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.properties] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.properties] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.yml] using context class loader
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.yml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.yml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.yml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.yaml] using context class loader
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.yaml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.yaml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.yaml] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.json] using context class loader
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.json] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.json] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.json] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.jsn] using context class loader
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.jsn] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.jsn] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.jsn] using
ClassLoader.getSystemResource().
TRACE StatusLogger Trying to find [log4j2.xml] using context class loader
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
.
TRACE StatusLogger Trying to find [log4j2.xml] using
sun.misc.Launcher$AppClassLoader@18b4aac2 class loader.
TRACE StatusLogger Trying to find [log4j2.xml] using
ParallelWebappClassLoader
  context: dk
  delegate: true
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@18b4aac2
 class loader.
TRACE StatusLogger Trying to find [log4j2.xml] using
ClassLoader.getSystemResource().
ERROR StatusLogger No Log4j 2 configuration file found. Using default
configuration (logging only errors to the console), or user
programmatically provided configurations. Set system property
'log4j2.debug' to show Log4j 2 internal initialization logging. See
https://logging.apache.org/log4j/2.x/manual/configuration.html for
instructions on how to configure Log4j 2
DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-3
DEBUG StatusLogger Initializing configuration
org.apache.logging.log4j.core.config.DefaultConfiguration@2224a8bd
DEBUG StatusLogger Installed 2 script engines
DEBUG StatusLogger Oracle Nashorn version: 1.8.0_171, language: ECMAScript,
threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js,
JS, JavaScript, javascript, ECMAScript, ecmascript], factory class:
jdk.nashorn.api.scripting.NashornScriptEngineFactory
DEBUG StatusLogger Caucho Quercus Script Engine version: 4.0.46, language:
php, threading: THREAD-ISOLATED, compile: true, names: [quercus, php],
factory class: com.caucho.quercus.script.QuercusScriptEngineFactory
DEBUG StatusLogger PluginManager 'Core' found 117 plugins
DEBUG StatusLogger PluginManager 'Level' found 0 plugins
DEBUG StatusLogger Configuration
org.apache.logging.log4j.core.config.DefaultConfiguration@2224a8bd
initialized
DEBUG StatusLogger Starting configuration
org.apache.logging.log4j.core.config.DefaultConfiguration@2224a8bd
DEBUG StatusLogger Started configuration
org.apache.logging.log4j.core.config.DefaultConfiguration@2224a8bd OK.
TRACE StatusLogger Stopping
org.apache.logging.log4j.core.config.DefaultConfiguration@5836ed7c...
TRACE StatusLogger DefaultConfiguration notified 1 ReliabilityStrategies
that config will be stopped.
TRACE StatusLogger DefaultConfiguration stopping root LoggerConfig.
TRACE StatusLogger DefaultConfiguration notifying ReliabilityStrategies
that appenders will be stopped.
TRACE StatusLogger DefaultConfiguration stopping remaining Appenders.
DEBUG StatusLogger Shutting down OutputStreamManager
SYSTEM_OUT.false.false-2
DEBUG StatusLogger Shut down OutputStreamManager SYSTEM_OUT.false.false-2,
all resources released: true
DEBUG StatusLogger Appender DefaultConsole-2 stopped with status true
TRACE StatusLogger DefaultConfiguration stopped 1 remaining Appenders.
TRACE StatusLogger DefaultConfiguration cleaning Appenders from 1
LoggerConfigs.
DEBUG StatusLogger Stopped
org.apache.logging.log4j.core.config.DefaultConfiguration@5836ed7c OK
TRACE StatusLogger Reregistering MBeans after reconfigure.
Selector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector@4c88b24e
TRACE StatusLogger Reregistering context (1/2): '18b4aac2'
org.apache.logging.log4j.core.LoggerContext@4834368c
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=StatusLogger'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=ContextSelector'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=Loggers,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=Appenders,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=AsyncAppenders,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=AsyncLoggerRingBuffer'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=18b4aac2,component=Loggers,name=*,subtype=RingBuffer'
DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=18b4aac2
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=18b4aac2,component=StatusLogger
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=18b4aac2,component=ContextSelector
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=18b4aac2,component=Appenders,name=DefaultConsole-3
TRACE StatusLogger Reregistering context (2/2): '/dk'
org.apache.logging.log4j.core.LoggerContext@4212f9a6
TRACE StatusLogger Unregistering 1 MBeans:
[org.apache.logging.log4j2:type=/dk]
TRACE StatusLogger Unregistering 1 MBeans:
[org.apache.logging.log4j2:type=/dk,component=StatusLogger]
TRACE StatusLogger Unregistering 1 MBeans:
[org.apache.logging.log4j2:type=/dk,component=ContextSelector]
TRACE StatusLogger Unregistering 2 MBeans:
[org.apache.logging.log4j2:type=/dk,component=Loggers,name=,
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari]
TRACE StatusLogger Unregistering 3 MBeans:
[org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEINFO,
org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEWARN,
org.apache.logging.log4j2:type=/dk,component=Appenders,name=devnull]
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=AsyncAppenders,name=*'
TRACE StatusLogger Unregistering but no MBeans found matching
'org.apache.logging.log4j2:type=/dk,component=AsyncLoggerRingBuffer'
TRACE StatusLogger Unregistering 2 MBeans:
[org.apache.logging.log4j2:type=/dk,component=Loggers,name=,subtype=RingBuffer,
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari,subtype=RingBuffer]
DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=/dk
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=StatusLogger
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=ContextSelector
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=,subtype=RingBuffer
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Loggers,name=com.zaxxer.hikari,subtype=RingBuffer
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEWARN
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=CONSOLEINFO
DEBUG StatusLogger Registering MBean
org.apache.logging.log4j2:type=/dk,component=Appenders,name=devnull
TRACE StatusLogger Using DummyNanoClock for nanosecond timestamps.
DEBUG StatusLogger Reconfiguration complete for context[name=18b4aac2] at
URI NULL_SOURCE (org.apache.logging.log4j.core.LoggerContext@4834368c) with
optional ClassLoader: null
DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
DEBUG StatusLogger LoggerContext[name=18b4aac2,
org.apache.logging.log4j.core.LoggerContext@4834368c] started OK.
DEBUG StatusLogger AsyncLogger.ThreadNameStrategy=UNCACHED (user specified
null, default is UNCACHED)
TRACE StatusLogger Using default SystemClock for timestamps.
DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock does not
support precise timestamps.
09:49:10.310 [localhost-startStop-1] ERROR se.netset.comp.CompContainer -
NOW WE ARE STARTING!
[localhost-startStop-1] INFO com.zaxxer.hikari.HikariDataSource -
Persistence connection pool - is starting.
TRACE StatusLogger WatchRunnable run triggered.
TRACE StatusLogger WatchRunnable run ended.

Best Regards / Med vänliga hälsningar

*Alexander Magnusson*
Software Developer

Mobile: +46 (0)40 - 20 88 01 <+46+40+20+88+01>


*Netset AB*
Adelgatan 9 - 211 22 Malmö - Sweden
Målargatan 7 - 111 22 Stockholm - Sweden
Head office: +46 (0)40 20 88 00 <+46%2040%2020%2088%2000>
www.netset.com  <http://www.netset.com/>
_____________________________

*Netset - Business to business e-commerce experts*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message