[rules-users] Re: drools-solver - magic name of scoreCalculator
Andrew Waterman
andrew.waterman at gmail.com
Fri Feb 13 11:26:51 EST 2009
Sure, I'll put a jira together. I'll try and come up with a technique
to suggest as well; off the top of my head, it would certainly make
things more explicit if you had the calculator handle specified in the
configuration file.
best wishes,
Andrew
---------------------------------
Andrew Waterman
San Cristóbal de las Casas, Chiapas, Mexico
+52 1 967 107 5902
+1 510 342 5693
On Feb 13, 2009, at 9:37 AM, Geoffrey De Smet wrote:
> Yes, it's not that good that it's a magic name.
> However, I don't know any other way to do it.
> Feel free to make a jira for it, especially if you know a better way
> to do it :)
>
> With kind regards,
> Geoffrey De Smet
>
>
> Andrew Waterman schreef:
>> 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
>> On Fri, Feb 13, 2009 at 7:55 AM, Geoffrey De Smet <ge0ffrey.spam at gmail.com
>> <mailto:ge0ffrey.spam at gmail.com>> wrote:
>> 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 <ge0ffrey.spam at gmail.com
>> <mailto:ge0ffrey.spam at gmail.com>> wrote:
>> From: Geoffrey De Smet <ge0ffrey.spam at gmail.com
>> <mailto:ge0ffrey.spam at gmail.com>>
>> Subject: [rules-users] Re: drools-solver -- logger error
>> (slf4j binding)?
>> To: rules-users at lists.jboss.org
>> <mailto:rules-users at 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,
>> 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
>> rules-users at lists.jboss.org
>> <mailto:rules-users at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org
>> >
>> https://lists.jboss.org/mailman/listinfo/rules-users
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org
>> >
>> https://lists.jboss.org/mailman/listinfo/rules-users
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>> --
>> +1 510 342 5693
>> PO Box 7775 #8750
>> San Francisco, California 94120-7775
>> "Warning: following standard input indefinitely is ineffective"
>> - /bin/tail error message
>> "Against logic there is no armor like ignorance."
>> - Laurence J. Pete
>> ------------------------------------------------------------------------
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list