Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added DynamicImportPackage:* to fix OSGi class loading issues #309

wants to merge 1 commit into


None yet
3 participants

Due to OSGi's class loading mechanism, drools-core is not able to load classes exported by other bundles when compiling rules, which leads to a class loading exception. "DynamicImport-Package: *" fixes this issue.


cmoulliard commented Feb 11, 2014

This modification should be a workaround and removed in the future. Why : OSGI container will scan all the bundles to find the package (not loaded when the bundle has been started) till it discover it. That could impact performances, does not guarantee which package will be used if they are exposed by different bundles ...

An option to configure the class loader used by the KieBuilder and the KieRuntime could solve the problem too.


mariofusco commented Apr 16, 2015

It is now possible to explicitly pass a custom classloader to the KieBuilder.
See https://issues.jboss.org/browse/DROOLS-763

@mariofusco mariofusco closed this Apr 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment