Chris,<br><br>I tried the reproduce your issue on the master branch with the very simple test case (practically identical to the one you reported on the jira ticket) that I am pasting below, but it works for me. I didn&#39;t try the same on the 5.1.1 though. Anyway can you please confirm that my test should be enough to reproduce your problem? Because, if so, I believe that, at least on the master, this bug should be already fixed.<br>
<br>Thanks,<br>Mario<br><br>    @Test<br>    public void testClassLoader() throws Exception {<br>        // JBRULES-3630<br>        File jar = new File(&quot;drools-compiler/src/test/resources/org/drools/compiler/xml/changeset/changeset.jar&quot;);<br>
<div id=":2cq">
        assertTrue(jar.exists());<br>        ClassLoader classLoader = URLClassLoader.newInstance(new URL[]{ jar.toURI().toURL() }, getClass().getClassLoader());<br>        Resource changeSet = ResourceFactory.newClassPathResource(&quot;changeset1Test.xml&quot;, classLoader);<br>

        KnowledgeBuilderConfiguration conf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null, classLoader);<br>        KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder(conf);<br>        builder.add(changeSet, ResourceType.CHANGE_SET);<br>

    }</div><br><br><div class="gmail_quote">On Sun, Sep 23, 2012 at 2:24 PM, Chris Rankin <span dir="ltr">&lt;<a href="mailto:rankincj@googlemail.com" target="_blank">rankincj@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Sep 23, 2012 at 8:02 AM, Mark Proctor &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:<br>
&gt; I reviewed the patch, it would be nice if there was a unit test too for this - to ensure we catch any future regressions.<br>
<br>
</div>I can do that. You presumably need this patch against the &quot;trunk&quot;,<br>
although this issue is apparently present in all releases since 5.1.1.<br>
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5">Chris<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>