Jeremiah,

Sorry for the confusion... I believe Dan is right about the dependency
needing to be "compile", and the statement on the Wiki page about making
them provided is not accurate. I will update the page to remove that.

Also, you should only need to copy the NAR into the NiFi lib directory, and
not the jar artifact.

Thanks for trying out the instructions, and if you have any other feedback
about what could be explained better, please let us know.

-Bryan

On Thu, Jun 25, 2015 at 4:47 PM, Dan Bress <[email protected]> wrote:

> Jeremiah,
>    How are you depending on org.apache.nifi:nifi-processor-utilities?  Is
> it a compile dependency, or a provided dependency?
>
>    It should be "compile" and not "provided"
>
> Dan Bress
> Software Engineer
> ONYX Consulting Services
>
> ________________________________________
> From: Adams, Jeremiah <[email protected]>
> Sent: Thursday, June 25, 2015 4:41 PM
> To: dev
> Subject: Problem with Custom Processor
>
> I am having some problems getting a custom processor to run in
> 0.1.0-snapshot. The problem looks to be rooted around this fragment of the
> stack trace:
>
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.nifi.processor.util.StandardValidators
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> ~[na:1.7.0_71]
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> ~[na:1.7.0_71]
>         at java.security.AccessController.doPrivileged(Native Method)
> ~[na:1.7.0_71]
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> ~[na:1.7.0_71]
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> ~[na:1.7.0_71]
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> ~[na:1.7.0_71]
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> ~[na:1.7.0_71]
>         ... 12 common frames omitted
>
>
> I have used the maven plugin to generate a bundle project and have removed
> the parent reference from the parent pom. I've followed the doc her:
>
> https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Custom+Processors
>
>
> Everything builds. I've dropped the resulting *.nar and *.jar file in /lib
> and restarted the server. I get the error above.
>
> Can anyone get me pointed in the right direction?
>
> Thanks.
>
> *Jeremiah Adams*
>
> Senior Software Developer
> Pearson
>
> 2154 East Commons Ave.
> Suite 400
> Centennial, CO 80122
>
>
> Always Learning
> Learn more at www.pearson.com
>

Reply via email to