title: Netbeans build error in Java project
body: <p>I am not able to Clean and Build my NetBeans java project. Output says:  </p>
  
  <blockquote>
    <p>error: Bad service configuration file, or exception thrown while
    constructing Processor object: javax.annotation.processing.Processor:
    Provider
    org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor
    could not be instantiated: java.lang.NoClassDefFoundError:
    org/eclipse/persistence/internal/sessions/AbstractSession  </p>
  </blockquote>
  
  <p>Here:  </p>
  
  <blockquote>
    <p>.../nbproject/build-impl.xml:930: The following error occurred while
    executing this line:
    .../nbproject/build-impl.xml:270: Compile failed; see the compiler error output for details.  </p>
  </blockquote>
  
  <p>Lines from build-impl.xml:<br>
  Line 270 -</p>
  
  <pre><code>&lt;javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"&gt; 
  </code></pre>
  
  <p>Line 930 -</p>
  
  <pre><code>&lt;j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/&gt;
  </code></pre>
  
  <p>I am trying to find some help on forums, but i am so hopeless. Thank you for your help.</p>