<br>   It seems to me that the problem is not with the classloader of your classes, but the classpath of the drools jars. Are you sure you updated and have all the required new jars in your classpath? Drools 5 has a few new jars, like drools-api, that need to be available. Also, check if there are any older jar still in the classpath that might be clashing with the new jars.<br>
<br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/7/1 Julien Nicoulaud <span dir="ltr">&lt;<a href="mailto:julien.nicoulaud@bull.net">julien.nicoulaud@bull.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, I&#39;m migrating my system from Drools 4.0.7 to Drools 5.1.0.<br>
Now when I try to compile rules that check fact fields, I get the<br>
following exception:<br>
<br>
        ERROR: EventDispatcher: Error during dispatch.<br>
        (java.lang.NoClassDefFoundError:<br>
        org/drools/base/extractors/BaseObjectClassFieldReader)<br>
        java.lang.NoClassDefFoundError:<br>
        org/drools/base/extractors/BaseObjectClassFieldReader<br>
<br>
        ( <a href="http://paste2.org/p/296380" target="_blank">http://paste2.org/p/296380</a> )<br>
<br>
<br>
It seems the classloaders I pass to the configurations are not taken in<br>
account... I get exactly the same error if I do not specify the<br>
classloaders. Here is the code:<br>
        KnowledgeBuilderConfiguration kBuilderCfg =<br>
        KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null,classLoader);<br>
        KnowledgeBuilder knowledgeBuilder =<br>
        KnowledgeBuilderFactory.newKnowledgeBuilder(kBuilderCfg);<br>
<br>
        KnowledgeBaseConfiguration kbaseConfig =<br>
        KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null,multiBundleClassLoader);<br>
        kbaseConfig.setOption(EventProcessingOption.STREAM);<br>
        knowledgeBase =<br>
        KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig);<br>
<br>
On Drools 4, we did exactly the same with PackageBuilder instead of<br>
KnowledgeBuilder and RuleBase for KnowledgeBase. So the classloaders I<br>
pass are the good ones... Is there some trick ?<br>
<br>
Thanks for any help !<br>
<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"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>