SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/harryh/foursquare.web/
lib_managed/compile/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/
StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/harryh/foursquare.web/target/
webapp/WEB-INF/lib/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/
StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
It looks like when SBT runs jetty all of my managed jars are double
included on the classpath? Is this actually what is happening?
-harryh
Unfortunately, yes. I pushed a fix, see [1] for instructions for building from
source. Sorry for the trouble and thanks for reporting the problem.
Issue details:
sbt switched over to using Jetty's WebAppClassLoader in 0.7 instead of a
custom class loader. Jetty apparently treats WebAppClassLoader instances
specially and the problem arises from one aspect of this special treatment
that I didn't know about. Jetty sees that the web application class loader is
a WebAppClassLoader and adds the WEB-INF/{lib, classes} directories to the
classpath in addition to the classpath sbt explicitly added.
-Mark