<div dir="ltr">Can you provide us the compilation error reported (gist link) and a test case to allow us to reproduce your issue ?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 4:00 PM, Ephemeris Lappis <span dir="ltr">&lt;<a href="mailto:ephemeris.lappis@gmail.com" target="_blank">ephemeris.lappis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
<br>
We have a very simple rules file that works as expected when running as a<br>
JUnit test in Eclipse with Maven dependencies, but fails when it is<br>
executing in ServiceMix with OSGi integration.<br>
<br>
The code is just like :<br>
<br>
raw&gt;<br>
Map&lt;String, Object&gt; dialog = new LinkedHashMap&lt;&gt;();<br>
KieSession kieSession = kieContainer.newKieSession(&quot;MyKSession&quot;);<br>
kieSession.setGlobal(&quot;dialog&quot;, dialog);<br>
kieSession.insert(problem);<br>
kieSession.fireAllRules();<br>
kieSession.dispose();<br>
<br>
<br>
The rules file :<br>
<br>
<br>
<br>
And the kmodule.xml :<br>
<br>
<br>
<br>
The compilation error is about Java 7 syntax elements (as generics or<br>
thousand separators in number literals for example), and seems to indicate<br>
that in this case the compiler is not the same, and it expects another Java<br>
syntax. No error is reported when the KieContainer is created from the<br>
KModule.xml, but the following error occurs when using it for KSession<br>
creation.<br>
<br>
<br>
<br>
This occurs both with the prepackaged feature<br>
(<a href="http://repo1.maven.org/maven2/org/drools/drools-karaf-features/6.1.0.Beta3/drools-karaf-features-6.1.0.Beta3-features.xml" target="_blank">http://repo1.maven.org/maven2/org/drools/drools-karaf-features/6.1.0.Beta3/drools-karaf-features-6.1.0.Beta3-features.xml</a>),<br>

or with an adapted one. For example, the Maven dependancies classpath in<br>
eclipse mentions newer versions of the Eclipse&#39;s ECJ. But changing the<br>
version of bundles has no effect...<br>
<br>
What is missing in the feature to activate the correct rules compiler ?<br>
<br>
Thanks for your help ?<br>
<br>
Regards.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-compilation-error-with-OSGi-integration-6-1-0-Beta3-tp4029601.html" target="_blank">http://drools.46999.n3.nabble.com/Rules-compilation-error-with-OSGi-integration-6-1-0-Beta3-tp4029601.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Charles Moulliard</div><div>Apache Committer / Architect @RedHat</div><div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.github.io" target="_blank"> http://cmoulliard.github.io</a></div>
<div><br></div></div>
</div>