Author: rhauch
Date: 2009-08-05 09:13:29 -0400 (Wed, 05 Aug 2009)
New Revision: 1143
Modified:
trunk/docs/examples/gettingstarted/pom.xml
trunk/docs/examples/gettingstarted/repositories/pom.xml
trunk/pom.xml
Log:
DNA-500 Repositories example throws NoSuchMethodError due to conflicting log4j versions
This issue has been an occasional source of frustration for some time. But I just noticed
that we're quite a few releases behind on the SLF4J library (the latest is 1.5.6, but
we're using 1.4.3). According to
http://www.slf4j.org/news.html this TRACE issue
appears when using Log4J versions older than 1.2.12 (as demonstrated above), and this was
reported and fixed as Bug 68 (
http://bugzilla.slf4j.org/show_bug.cgi?id=68) in SLF4J 1.5.1
by having the Log4J adapter class remap TRACE messages as DEBUG messages.
Simply upgrading the SLF4J API and adapter versions to 1.5.1 (or higher) should therefore
fix this problem (hopefully once and for all). Changing the SLF4J API and Log4J adapter
to 1.5.6 (the latest) appears to have worked with no regressions, and I was able to
successfully run the repositories example using run.sh from
target/dna-example-repositories-basic.dir/.
Modified: trunk/docs/examples/gettingstarted/pom.xml
===================================================================
--- trunk/docs/examples/gettingstarted/pom.xml 2009-08-04 14:58:56 UTC (rev 1142)
+++ trunk/docs/examples/gettingstarted/pom.xml 2009-08-05 13:13:29 UTC (rev 1143)
@@ -63,19 +63,19 @@
</dependency>
<!-- Logging (require SLF4J API for compiling, but use Log4J and its SLF4J
binding for testing) -->
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.4.3</version>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.5.6</version>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.4.3</version>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.6</version>
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.14</version>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
</dependency>
<!-- Java Content Repository API -->
<dependency>
Modified: trunk/docs/examples/gettingstarted/repositories/pom.xml
===================================================================
--- trunk/docs/examples/gettingstarted/repositories/pom.xml 2009-08-04 14:58:56 UTC (rev
1142)
+++ trunk/docs/examples/gettingstarted/repositories/pom.xml 2009-08-05 13:13:29 UTC (rev
1143)
@@ -35,7 +35,7 @@
<scope>runtime</scope>
</dependency>
<!--
- Logging (require SLF4J API for compiling, but use Log4J and its SLF4J binding for
testing)
+ Logging (require SLF4J API for compiling, but use Log4J and its SLF4J binding for
running)
-->
<dependency>
<groupId>org.slf4j</groupId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-08-04 14:58:56 UTC (rev 1142)
+++ trunk/pom.xml 2009-08-05 13:13:29 UTC (rev 1143)
@@ -541,13 +541,13 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
- <version>1.4.3</version>
+ <version>1.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
- <version>1.4.3</version>
+ <version>1.5.6</version>
<scope>test</scope>
</dependency>
<dependency>