From: <bra...@us...> - 2007-10-12 21:55:06
|
Revision: 2039 http://archive-access.svn.sourceforge.net/archive-access/?rev=2039&view=rev Author: bradtofel Date: 2007-10-12 14:55:10 -0700 (Fri, 12 Oct 2007) Log Message: ----------- HACKHACK: two command line tools, arc-indexer, and url-client make use of the apache commons http client, via heritrix-commons. There is some class loader issue with the commons-logging in this setup, which causes errors about not being able to find a Log4J implementation class within the http client. This is not a problem when there is a log4j dependency. However, adding this dependency causes Spring configuration errors to be squelched within tomcat in the webapp context.. So, I'm adding the log4j dependency for the command line tools, then excluding the log4j jar from the webapp. This seems to be a valid workaround until we understand the log4j/commons-logging issue. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/pom.xml trunk/archive-access/projects/wayback/wayback-webapp/pom.xml Modified: trunk/archive-access/projects/wayback/wayback-core/pom.xml =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/pom.xml 2007-10-12 19:41:52 UTC (rev 2038) +++ trunk/archive-access/projects/wayback/wayback-core/pom.xml 2007-10-12 21:55:10 UTC (rev 2039) @@ -74,5 +74,14 @@ <artifactId>spring-beans</artifactId> <version>2.0.5</version> </dependency> + <!-- + Doh... I'm not sure what package is configuring org.apache.commons-logging + to use log4j, but it's breaking some command line tools. + --> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + </dependency> </dependencies> </project> Modified: trunk/archive-access/projects/wayback/wayback-webapp/pom.xml =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/pom.xml 2007-10-12 19:41:52 UTC (rev 2038) +++ trunk/archive-access/projects/wayback/wayback-webapp/pom.xml 2007-10-12 21:55:10 UTC (rev 2039) @@ -28,7 +28,13 @@ <dependency> <groupId>org.archive.wayback</groupId> <artifactId>wayback-core</artifactId> - <scope>compile</scope> + <scope>compile</scope> + <exclusions> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + </exclusions> </dependency> <dependency> <groupId>tomcat</groupId> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |