Can you provide us the compilation error reported (gist link) and a test case to allow us to reproduce your issue ?

On Mon, May 19, 2014 at 4:00 PM, Ephemeris Lappis <> wrote:

We have a very simple rules file that works as expected when running as a
JUnit test in Eclipse with Maven dependencies, but fails when it is
executing in ServiceMix with OSGi integration.

The code is just like :

Map<String, Object> dialog = new LinkedHashMap<>();
KieSession kieSession = kieContainer.newKieSession("MyKSession");
kieSession.setGlobal("dialog", dialog);

The rules file :

And the kmodule.xml :

The compilation error is about Java 7 syntax elements (as generics or
thousand separators in number literals for example), and seems to indicate
that in this case the compiler is not the same, and it expects another Java
syntax. No error is reported when the KieContainer is created from the
KModule.xml, but the following error occurs when using it for KSession

This occurs both with the prepackaged feature
or with an adapted one. For example, the Maven dependancies classpath in
eclipse mentions newer versions of the Eclipse's ECJ. But changing the
version of bundles has no effect...

What is missing in the feature to activate the correct rules compiler ?

Thanks for your help ?


View this message in context:
Sent from the Drools: User forum mailing list archive at
rules-users mailing list

Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :