------
Olivier Lamy
------
- 2011-09-29
+ 2012-12-20
------
~~ Licensed to the Apache Software Foundation (ASF) under one
+-----------+
One of the common causes for this <<<listenerStart Error>>> is a failure during Spring's initialization. One way to diagnose or confirm the
- exact cause of the error is by adding the following configuration to the unpacked Archiva webapp's <<<WEB-INF/classes/log4j.xml>>>:
+ exact cause of the error is by adding the following configuration to the unpacked Archiva webapp's <<<WEB-INF/classes/log4j2.xml>>>:
+-----------+
-<appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
- </layout>
-</appender>
-
-<logger name="org.springframework.web">
- <level value="debug"/>
- <appender-ref ref="console"/>
-</logger>
+ <appenders>
+
+ <Console name="console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
+ </Console>
+
+ </appenders>
+
+ <logger name="org.springframework.web" level="debug">
+ <appender-ref ref="console"/>
+ </logger>
+-----------+
The above configuration directs Spring's output logs to the Tomcat console and be recorded in Tomcat's log files.