[jboss-jira] [JBoss JIRA] (DROOLS-403) Use of drools karaf feature required activated bundle to import drools packages
Gary Brown (JIRA)
issues at jboss.org
Thu Jan 16 06:30:34 EST 2014
Gary Brown created DROOLS-403:
---------------------------------
Summary: Use of drools karaf feature required activated bundle to import drools packages
Key: DROOLS-403
URL: https://issues.jboss.org/browse/DROOLS-403
Project: Drools
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Affects Versions: 6.0.0.CR5
Reporter: Gary Brown
Assignee: Mark Proctor
Currently porting rtgov to Karaf, which uses Drools as one of the event processor implementations, using the KIE API: https://github.com/Governance/rtgov/blob/master/modules/event-processor/ep-drools/src/main/java/org/overlord/rtgov/ep/drools/DroolsEventProcessor.java
When the bundle is activated, that registers the event processor, its drools rule and associated user defined classes, etc, it results in class loading issues if the following packages are not defined in the Import-Package of the activated (i.e. client) bundle:
org.drools.core.conflict,org.drools.core.rule.builder.dialect.asm,org.drools.core.spi,org.drools.core.reteoo,org.drools.core,org.drools.core.common,org.drools.core.rule
The exceptions occur when the drools classes are being loaded via the ProjectClassLoader class. Ideally client bundles should only be importing the kie packages, as the drools classes should be internal implementation details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list