<div dir="ltr">OK, Still got problems.<div><br></div><div>i&#39;ve created a maven project, and all looks good in compile time (with all the org.drools dep below).</div><div><br></div><div>but i think i still missing a &#39;runtime&#39; dependency, cause when i try to run the Hello World example, i get this error: </div>

<div><br></div><div><font class="Apple-style-span" color="#330099">[the src line is this: </font></div><div><font class="Apple-style-span" color="#330099">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();]</font></div>

<div><br></div><div><div><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">org.drools.ProviderInitializationException: Provider org.drools.builder.impl.KnowledgeBuilderProviderImpl could not be set.</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at org.drools.builder.KnowledgeBuilderFactory.loadProvider(KnowledgeBuilderFactory.java:111)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at org.drools.builder.KnowledgeBuilderFactory.getKnowledgeBuilderProvider(KnowledgeBuilderFactory.java:101)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:29)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at com.commtouch.drools.DroolsTest.readKnowledgeBase(DroolsTest.java:38)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at com.commtouch.drools.DroolsTest.main(DroolsTest.java:24)</font></span></div>

<div><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000"><span class="Apple-style-span" style="background-color: rgb(255, 204, 51);">Caused by: java.lang.ClassNotFoundException: org.drools.builder.impl.KnowledgeBuilderProviderImpl</span></font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.net.URLClassLoader$1.run(URLClassLoader.java:202)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.security.AccessController.doPrivileged(Native Method)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.net.URLClassLoader.findClass(URLClassLoader.java:190)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.lang.ClassLoader.loadClass(ClassLoader.java:307)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.lang.ClassLoader.loadClass(ClassLoader.java:248)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.lang.Class.forName0(Native Method)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at java.lang.Class.forName(Class.java:169)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">        </font></span></span><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" color="#990000">at org.drools.builder.KnowledgeBuilderFactory.loadProvider(KnowledgeBuilderFactory.java:108)</font></span></div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div>am i missing org.drools.builder? (i didn&#39;t see it in the maven repo..)</div><br><div class="gmail_quote">On Sun, May 9, 2010 at 3:35 PM, Salaboy <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@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;">I always prefer to create the maven projects from the scratch. You<br>
only need to add the following deps (groupid and artifactid)<br>
<br>
org.drools<br>
drools-api<br>
<br>
org.drools<br>
drools-core<br>
<br>
org.drools<br>
drools-compiler<br>
<br>
You probably need to add the jboss repository as well in order to get<br>
this deps<br>
<br>
<a href="http://Repository.jboss.org/maven2" target="_blank">Repository.jboss.org/maven2</a><br>
<br>
<br>
- Ing. Mauricio Salatino -<br>
<div><div></div><div class="h5"><br>
On May 9, 2010, at 5:01, eyal edri &lt;<a href="mailto:eyal.edri@gmail.com">eyal.edri@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve created the HelloWorld drools sample project and i want to turn<br>
&gt; it into a maven project.<br>
&gt;<br>
&gt; i know i can create and empty maven project and copy all sources<br>
&gt; from the drools project to it,<br>
&gt; but how do i handle the dependant jars (drools runtime?)<br>
&gt;<br>
&gt; is there a guide of how to mavenize your drools projects?<br>
&gt;<br>
&gt; --<br>
&gt; Eyal Edri<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><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>Eyal Edri<br>
</div></div>