<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
It seems to be a bug, please could you open a Ticket in jira and provide additional information for that? <div><br></div><div>Thanks </div><div><br class="webkit-block-placeholder"></div><div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>Fernando Meyer <a href="http://fmeyer.org">http://fmeyer.org</a></div><div><a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a></div><div><span class="Apple-style-span" style="font-family: Monaco; "><div>PGP: 0xD804DDFB</div><div><br></div></span></div></span></span></span></span><br class="Apple-interchange-newline"></span> </div><br><div><div>On Jul 18, 2007, at 9:16 AM, Jesse Stockall wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> The NoClassDefFoundError exception is thrown from within drools code, so it's obviously in the classpath. The problem appears to be with the mechanism used by drools to load it's own code.<br> <br> Jesse<br> <br> On Wed, 2007-18-07 at 02:14 -0300, Fernando Meyer wrote:<br> <blockquote type="CITE">    <font color="#000000">You should add the drools-core library as a required dependency.</font> </blockquote> <blockquote type="CITE">    <br> </blockquote> <blockquote type="CITE">    <font color="#000000">Fernando Meyer <a href="http://fmeyer.org">http://fmeyer.org</a></font> </blockquote> <blockquote type="CITE">    <font color="#000000"><a href="mailto:fmcamargo@gmail.com">fmcamargo@gmail.com</a></font> </blockquote> <blockquote type="CITE">    <font color="#000000">PGP: 0xD804DDFB</font> </blockquote> <blockquote type="CITE">    <br>    <br> </blockquote> <blockquote type="CITE">    <br>    <br> </blockquote> <blockquote type="CITE">    <br> </blockquote> <blockquote type="CITE">    <font color="#000000">On Jul 17, 2007, at 9:55 AM, Jesse Stockall wrote:</font> </blockquote> <blockquote type="CITE">    <br>    <blockquote type="CITE">        <font color="#000000">Tomcat 5.5</font><br>        <font color="#000000">Java 1.5</font><br>        <font color="#000000">jbossrules-4.0.0.12865MR3</font><br>        <br>        <font color="#000000">I have an instance of Drools running inside a webapp deployed on Tomcat. The rules have been compiled ahead of time and are loaded in with:</font><br>        <br>        <font color="#000000">InputStream is = PolicyRuntime.class.getResourceAsStream(name);</font><br>        <font color="#000000">DroolsObjectInputStream in = new DroolsObjectInputStream(is);</font><br>        <font color="#000000">Package p = (Package) in.readObject();</font><br>        <br>        <font color="#000000">When run outside Tomcat it loads fine, when run inside Tomcat I get:</font><br>        <br>        <font color="#000000">java.lang.NoClassDefFoundError: org/drools/base/extractors/BaseObjectClassFieldExtractor</font><br>        <font color="#000000">at java.lang.ClassLoader.defineClass1(Native Method)</font><br>        <font color="#000000">at java.lang.ClassLoader.defineClass(ClassLoader.java:620)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractorFactory$ByteArrayClassLoader.defineClass(ClassFieldExtractorFactory.java:455)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractorFactory.getClassFieldExtractor(ClassFieldExtractorFactory.java:114)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractor.init(ClassFieldExtractor.java:77)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractor.&lt;init&gt;(ClassFieldExtractor.java:57)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractorCache.getExtractor(ClassFieldExtractorCache.java:35)</font><br>        <font color="#000000">at org.drools.base.ClassFieldExtractor.readResolve(ClassFieldExtractor.java:72)</font><br>        <br>        <font color="#000000">I've tried adding DroolsObjectInputStream.class.getClassLoader() , PolicyRuntime.class.getClassLoader() and Thread.currentThread().getContextClassLoader() to the constructor of the DroolsObjectInputStream but none had any effect.</font><br>        <br>        <font color="#000000">Thanks</font><br>        <br>        <font color="#000000">Jesse</font><br>        <br>    </blockquote> </blockquote> <blockquote type="CITE">    <blockquote type="CITE">        <font color="#000000">_______________________________________________</font>    </blockquote> </blockquote> <blockquote type="CITE">    <blockquote type="CITE">        <font color="#000000">rules-users mailing list</font>    </blockquote> </blockquote> <blockquote type="CITE">    <blockquote type="CITE">        <font color="#000000"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></font>    </blockquote> </blockquote> <blockquote type="CITE">    <blockquote type="CITE">        <font color="#000000"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></font>    </blockquote> </blockquote> <blockquote type="CITE">    <br>    <br> </blockquote> <blockquote type="CITE"> <pre><font color="#000000">_______________________________________________</font>
<font color="#000000">rules-users mailing list</font>
<font color="#000000"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></font>
<font color="#000000"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></font>
</pre> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></div> </blockquote></div><br></div></body></html>