Thanks Geoffrey! I patched this yesterday with slf4j-jcl and slf4j-nop for no loging. I'll post the mavne dependencies later this morning in case others wish to use non-log4j implementations. :) I did noticeas well that the "scoreCalculator" global is referenced by name from the solver. Want me to file a jira issue on that? It seems strange that the variable name shoudl be static like that to me.
best wishes,
Andrew
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.Greg Barton schreef:
With kind regards,
Geoffrey De Smet
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 <ge0ffrey.spam@gmail.com> wrote:
From: Geoffrey De Smet <ge0ffrey.spam@gmail.com>
Subject: [rules-users] Re: drools-solver -- logger error (slf4j binding)?
To: rules-users@lists.jboss.org
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,and have gotten the following error while running my
I'm using the drools-solver.M5 build through Maven
project:
SLF4J: Failed to load class"org.slf4j.impl.StaticLoggerBinder".
SLF4J: Seehttp://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
I've checked my dependency graph, anddrools-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
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users