<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&eacute; Fr&oacute;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>&lt;properties&gt;</div>
            <div><span class="" style="white-space:pre"> </span>&lt;org.drools.version&gt;5.5.0.Final&lt;/org.drools.version&gt;</div>
          </div>
          <div style="">&lt;/properties&gt;<br>
          </div>
          <div style=""><br>
          </div>
          <div style="">
            <div>&lt;dependency&gt;</div>
            <div>&nbsp; &nbsp;&lt;groupId&gt;org.drools&lt;/groupId&gt;</div>
            <div>&nbsp; &nbsp; &lt;artifactId&gt;drools-core&lt;/artifactId&gt;</div>
            <div>&nbsp; &nbsp;
              &lt;version&gt;${org.drools.version}&lt;/version&gt;</div>
            <div>&nbsp; &nbsp; &lt;scope&gt;provided&lt;/scope&gt;</div>
          </div>
        </div>
      </div>
    </blockquote>
    Remove &lt;scope&gt;.<br>
    <blockquote
cite="mid:CAC8f_wWT+uK1ewp+qfAid6ySo7NLOT1c68itgk9D+hyVQAppPA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">
          <div style="">
            <div>&lt;/dependency&gt;</div>
            <div>&lt;dependency&gt;</div>
            <div>&nbsp; &nbsp; &nbsp;&lt;groupId&gt;org.drools&lt;/groupId&gt;</div>
            <div>&nbsp; &nbsp;
              &nbsp;&lt;artifactId&gt;drools-compiler&lt;/artifactId&gt;</div>
            <div>&nbsp; &nbsp;
              &nbsp;&lt;version&gt;${org.drools.version}&lt;/version&gt;</div>
            <div>&nbsp; &nbsp; &nbsp;&lt;scope&gt;provided&lt;/scope&gt;</div>
          </div>
        </div>
      </div>
    </blockquote>
    Remove &lt;scope&gt;.<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>&lt;/dependency&gt;</div>
            <div>&lt;dependency&gt;</div>
            <div>&nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.drools.planner&lt;/groupId&gt;</div>
            <div>&nbsp; &nbsp; &nbsp;
              &lt;artifactId&gt;drools-planner-core&lt;/artifactId&gt;</div>
            <div>&nbsp; &nbsp; &nbsp;
              &lt;version&gt;${org.drools.version}&lt;/version&gt;</div>
            <div>&lt;/dependency&gt;</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>