Hi Everyone!

We've been using the engine for quite a while in the project (a web app) and now we're switching from Tomcat to Jetty in our local dev environments. This change triggered a strange error when it compiles the rules (both with the eclipse and janino dialects).

I'm using eclipse 3.3.2, Jetty 7.1.7 and the error happened in Drools 4.0.4 to 4.0.6 (may be in other versions too).

The exception I'm getting with the janino dialect (which is more verbose) is attached and the rule (here's a small snippet)
org.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryorg.slf4j.Loggerorg.slf4j.LoggerFactoryRule Compilation error : [Rule name=insertion of versions, agendaGroup=MAIN, salience=0, no-loop=false]
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:3) : Imported class "org.slf4j.LoggerFactory" could not be loaded
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:26) : A method named "getLogger" is not declared in any enclosing class nor any supertype, nor through a static import
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:52) : A method named "info" is not declared in any enclosing class nor any supertype, nor through a static import
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:26) : A method named "getLogger" is not declared in any enclosing class nor any supertype, nor through a static import
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:3) : Imported class "org.slf4j.LoggerFactory" could not be loaded
    com/elixir/rules/Rule_insertion_of_versions_0.java (16:26) : Instance method "getLogger" cannot be invoked in static context


 And I'm executing the following rule:
package com.elixir

#list any import classes here.
import com.elixir.model.*;
import java.util.HashSet;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

rule "insertion of versions"
    ruleflow-group "fact-insertion"
    when
        $a: Artifact(versions != null)
        $v: ArtifactVersion() from $a.getVersions()
    then
        insert ($v);
        LoggerFactory.getLogger("factinsertion.drl").info("Entered: insertion of versions");       
end

And the PackageBuilder get's instantiated like this:
        PackageBuilderConfiguration pkgBuilderCfg = new PackageBuilderConfiguration();
        JavaDialectConfiguration javaConf = (JavaDialectConfiguration) pkgBuilderCfg.getDialectConfiguration( "java" );
        javaConf.setCompiler( JavaDialectConfiguration.JANINO );
        PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);


I'm quite sure that this is a mistake in how I'm running this, but I can't find the solution :S.

Oh, and just in case, we're running the application without any problems in jetty but not from inside eclipse.


Thanks in advance,
Augusto