<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 01-03-13 13:32, André Fróes schreef:<br>
</div>
<blockquote
cite="mid:CAC8f_wWT+uK1ewp+qfAid6ySo7NLOT1c68itgk9D+hyVQAppPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">I'm importing my project to netbeans and I am
having this exception:</div>
<div><br>
</div>
<div>Exception in thread "main" java.lang.NoClassDefFoundError:
org/drools/compiler/DroolsParserException</div>
<div><span class="" style="white-space:pre"> </span>at
java.lang.Class.getDeclaredFields0(Native Method)</div>
<div><span class="" style="white-space:pre"> </span>at
java.lang.Class.privateGetDeclaredFields(Class.java:2308)</div>
<div><span class="" style="white-space:pre"> </span>at
java.lang.Class.getDeclaredFields(Class.java:1760)</div>
<div><span class="" style="white-space:pre"> </span>at
com.thoughtworks.xstream.mapper.AnnotationMapper.processTypes(AnnotationMapper.java:182)</div>
<div><span class="" style="white-space:pre"> </span>Java
Result: 1</div>
<div><br>
</div>
<div style="">it happens when I reach the line where I set the
configuration file:</div>
<div style="">
<div><br>
</div>
<div>SolverFactory solverFactory = new
XmlSolverFactory("/com/my/proj/planner/solver/plannerSolverConfig.xml");</div>
<div><br>
</div>
<div style="">I'm using now drools 5.5.0.Final without the dsl
file that had some issue (see older post), I tested on
eclipse with it and it worked perfectly. The path to the
file is correct.</div>
<div style="">
<br>
</div>
<div style="">These are the dependencies, using maven:</div>
<div style=""><br>
</div>
<div style="">drools-compiler-5.5.0.Final</div>
<div style="">drools-core-5.5.0.Final</div>
<div style="">drools-planner-core-5.5.0.Final<br>
</div>
<div style=""><br>
</div>
<div style="">
<div><properties></div>
<div><span class="" style="white-space:pre"> </span><org.drools.version>5.5.0.Final</org.drools.version></div>
</div>
<div style=""></properties><br>
</div>
<div style=""><br>
</div>
<div style="">
<div><dependency></div>
<div> <groupId>org.drools</groupId></div>
<div> <artifactId>drools-core</artifactId></div>
<div>
<version>${org.drools.version}</version></div>
<div> <scope>provided</scope></div>
</div>
</div>
</div>
</blockquote>
Remove <scope>.<br>
<blockquote
cite="mid:CAC8f_wWT+uK1ewp+qfAid6ySo7NLOT1c68itgk9D+hyVQAppPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">
<div style="">
<div></dependency></div>
<div><dependency></div>
<div> <groupId>org.drools</groupId></div>
<div>
<artifactId>drools-compiler</artifactId></div>
<div>
<version>${org.drools.version}</version></div>
<div> <scope>provided</scope></div>
</div>
</div>
</div>
</blockquote>
Remove <scope>.<br>
Scope provided means you're not deploying/packaging it.<br>
See free maven books.<br>
<blockquote
cite="mid:CAC8f_wWT+uK1ewp+qfAid6ySo7NLOT1c68itgk9D+hyVQAppPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">
<div style="">
<div></dependency></div>
<div><dependency></div>
<div> <groupId>org.drools.planner</groupId></div>
<div>
<artifactId>drools-planner-core</artifactId></div>
<div>
<version>${org.drools.version}</version></div>
<div></dependency></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</body>
</html>