Adding the slf4j-log4j12 dependency to your pom.xml should fix it :)

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <scope>runtime</scope>
        </dependency>

Not sure how changing anything in drools-solver-examples could fix it, normally your project wouldn't depend on it, only on drools-solver-core.

With kind regards,
Geoffrey De Smet


Greg Barton schreef:
I was getting the error below running the benchmarkNQueens.sh script in drools-solver-examples.  I 
got around it by taking the "<scope>runtime</scope>" line out of the 
slf4j-log4j12 dependency in drools-solver-examples/pom.xml.  Not sure if that's the right way to get 
around it, but it worked. :)

--- On Fri, 2/13/09, Geoffrey De Smet <[email protected]> wrote:

From: Geoffrey De Smet <[email protected]>
Subject: [rules-users] Re: drools-solver -- logger error (slf4j binding)?
To: [email protected]
Date: Friday, February 13, 2009, 1:04 AM
drools-score (like hibernate and many other lib projects)
just depends on sl4j-api, which is a logging interface.
It's up to the end-use product to decide which logging
implementation to use under that and how to configure the
logging (where to log to, how much to log, ...).

In the drools solver examples I 've put slf4j-log4j
underneat it, because I am familiar with log4j's
configuration, take a look at their log4j.xml files. However
they say that the logback implementation is better these
days.


PS: I 'll take a look at the other discussions this
afternoon.

With kind regards,
Geoffrey De Smet

Andrew Waterman schreef:
Hi,

I'm using the drools-solver.M5 build through Maven
and have gotten the following error while running my
project:
SLF4J: Failed to load class
"org.slf4j.impl.StaticLoggerBinder".
SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
I've checked my dependency graph, and
drools-solver references the sl4j-api, but no
implementation.  I checked the mvnrepository, and there are
several other slf4j related projects.  What is the preferred
binding for JDK1.6?
best wishes,

Andrew

---------------------------------
Andrew Waterman
San Cristóbal de las Casas, Chiapas, Mexico
+52 1 967 107 5902
+1 510 342 5693









_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to