<div dir="ltr">I&#39;ve created a repo on github you can clone to reproduce the issue. It is located at:<div><br></div><div><a href="https://github.com/caskater4/kie-wb-error">https://github.com/caskater4/kie-wb-error</a><br>
</div><div><br></div><div>I thought I had isolated the problem down to the project having specified drools-core as a dependency but when I attempted to create a repo with only that it didn&#39;t seem to cause a direct problem. The repo above closely resembles the use case I have which does reproduce the errors I am seeing.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 11:25 AM, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Can you create a repository that you can share to reproduce the problem? </p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote"><div><div class="h5">On 3 Jun 2014 19:10, &quot;Steinmetz, Jean-Philippe&quot; &lt;<a href="mailto:jpsteinmetz@theworkshop.us.com" target="_blank">jpsteinmetz@theworkshop.us.com</a>&gt; wrote:<br type="attribution">
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">Does anyone have an idea why I am getting these compilation errors? This is currently blocking me at the moment and I have been able to find a solution. Thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">


On Fri, May 30, 2014 at 10:51 AM, Steinmetz, Jean-Philippe <span dir="ltr">&lt;<a href="mailto:jpsteinmetz@theworkshop.us.com" target="_blank">jpsteinmetz@theworkshop.us.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 dir="ltr">Okay I was able to disable strict-mode using by defining the system-property in JBoss. With that and fixing up some of the imports I was able to reduce the compilation errors shown in the workbench to just a couple.<div>



<br></div><div>The errors I get now are:</div><div><br></div><div>Error importing : &#39;com.mycompany.MyClassUtils&#39;<br></div><div>Error importing : &#39;org.apache.commons.lang3.time.DateUtils&#39;<br></div><div><div>



[ function isEventOnSameDay (line:18): Only a type can be imported. com.mycompany.MyClassUtils resolves to a package</div><div>isEventOnSameDay (line:24): Only a type can be imported. org.apache.commons.lang3.time.DateUtils resolves to a package</div>



<div>isEventOnSameDay (line:36): DateUtils cannot be resolved</div><div>isEventOnSameDay (line:37): DateUtils cannot be resolved</div><div> ]</div></div><div><br></div><div>The MyClassUtils is a class defined in the same project as the DRL files. Therefore, assuming the workbench is also compiling/loading the java files in the classloader it should resolve without issue. The DateUtils class is a maven dependency and I assume should be loaded by the workbench as well? Why would the compiler see these classes as packages?</div>



</div>
</blockquote></div><br></div>
<br></div></div><div class="">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></div></blockquote></div>
<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></div>