Hello.
Although without much conviction, I've tried the
Bundle-RequiredExecutionEnvironment: J2SE-1.7, but it doesn't change the
compilation level of the rules...
As I said in a previous answer, I don't know exactly how to do it, but I
think the solution may be in the way that Drools takes the
If you look to my example posted previously there are no issues. Can you
make a test using just Apache Karaf 2.3.x with Drools 6.1.0.Beta3 and tell
me what happen. Which JDK do you sue ?
On Wed, May 21, 2014 at 9:03 AM, Ephemeris Lappis
ephemeris.lap...@gmail.com wrote:
Hello.
Although
Hello.
I could try to test on ServiceMix 5 that embeds Karaf 2.3.4, but for my
concrete project, the customer current platform uses a ServiceMix 4.5.3
which is not really possible to change today while many other modules are
already deployed.
Did you try in your environment the test project
I can reproduce your error when I deploy the project (compiled with 1.7)
and running with JDK 1.7 on Karaf 2.2.1/Felix 3.2.2 (= SMX 4.5.3)
2014-05-21 13:30:25,020 | INFO | l Console Thread | ClasspathKieProject
| 211 - org.drools.compiler - 6.0.3.redhat-1 | Found kmodule:
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
ephemeris.lap...@gmail.com wrote:
Hello.
We have a very simple rules file that works as expected when running as a
JUnit
Hello.
Here is the first lines of the error message :
14:58:57,457 | ERROR | tp1946301910-151 | AbstractKieModule|
239 - org.drools.compiler - 6.1.0.20140429-1643 | Unable to build
KieBaseModel:MyKBase
Rule Compilation error : [Rule name='Main Rule']
A test case will be required to reproduce your problem. Do you have a
pax-exam test ?
On Tue, May 20, 2014 at 1:03 PM, Ephemeris Lappis
ephemeris.lap...@gmail.com wrote:
Hello.
Here is the first lines of the error message :
14:58:57,457 | ERROR | tp1946301910-151 | AbstractKieModule
|
Hello.
I have no such kind test with Pax Exam. Should you send me a simple maven
project example using a Karaf container ?
Back to the problem, a very simple rule with something like that in the RHS
always fails when deployed in a bundle whose class loader is the felix one :
ListString l = new
Is it a list that you would like to use as global param ? If this is the
case, maybe change your rule code like that
//GET A KSESSION
StatefulKnowledgeSession ksession =
kbase.newStatefulKnowledgeSession();
//now create some test data
ksession.insert( new Cheese(
In this case it's not a global, but a temporary variable in the rule
consequence. Indeed, the problem is not only about generics, but impacts
all the syntax elements that may have changed since Java 1.5, and make the
rules Java compiler fails when running in ServiceMix.
As I said before, the
-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
--
View this message in context: Re: [rules-users] Rules compilation error
with OSGi
-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
--
View this message in context: Re: [rules-users] Rules compilation error
with OSGi integration
Hello.
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 :
raw
MapString, Object dialog = new LinkedHashMap();
KieSession kieSession =
13 matches
Mail list logo