You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Joseph Obernberger <jo...@gmail.com> on 2016/05/26 14:28:05 UTC
Classpath and new plugin
Hi - I'm trying to make a new indexer plugin for Nutch, but I'm having
trouble with the classpath. The error that I'm getting is:
Error: java.lang.ClassNotFoundException: org.jaxen.JaxenException
My plugin.xml file has that jar in it, and when building the jar file shows
up:
<library name="jaxen-1.1.6.jar"/>
Are there any gotchas with the classpath loader?
Thank you!
-Joe
Re: Classpath and new plugin
Posted by Sebastian Nagel <wa...@googlemail.com>.
Hi Joe,
did you also add the library to the ivy.xml (src/plugin/indexer-xxx/ivy.xml)?
Or is the jar placed in src/plugin/indexer-xxx/lib/?
That's the two ways defined in src/plugin/build-plugin.xml which should be imported
by src/plugin/indexer-xxx/build.xml via
<import file="../build-plugin.xml"/>
It should work!
Sebastian
On 05/27/2016 09:54 PM, Joseph Obernberger wrote:
> If anyone was wondering - I fixed this by copying the jaxen-1.1.6.jar to
> the build/lib directory and re-jaring the job file. I'm not sure why
> copying it there instead of having it in the plugins/indexer-xxx directory
> worked, but it did.
>
> -Joe
>
> On Thu, May 26, 2016 at 10:28 AM, Joseph Obernberger <
> joseph.obernberger@gmail.com> wrote:
>
>> Hi - I'm trying to make a new indexer plugin for Nutch, but I'm having
>> trouble with the classpath. The error that I'm getting is:
>> Error: java.lang.ClassNotFoundException: org.jaxen.JaxenException
>> My plugin.xml file has that jar in it, and when building the jar file
>> shows up:
>> <library name="jaxen-1.1.6.jar"/>
>>
>> Are there any gotchas with the classpath loader?
>> Thank you!
>>
>> -Joe
>>
>
Re: Classpath and new plugin
Posted by Joseph Obernberger <jo...@gmail.com>.
If anyone was wondering - I fixed this by copying the jaxen-1.1.6.jar to
the build/lib directory and re-jaring the job file. I'm not sure why
copying it there instead of having it in the plugins/indexer-xxx directory
worked, but it did.
-Joe
On Thu, May 26, 2016 at 10:28 AM, Joseph Obernberger <
joseph.obernberger@gmail.com> wrote:
> Hi - I'm trying to make a new indexer plugin for Nutch, but I'm having
> trouble with the classpath. The error that I'm getting is:
> Error: java.lang.ClassNotFoundException: org.jaxen.JaxenException
> My plugin.xml file has that jar in it, and when building the jar file
> shows up:
> <library name="jaxen-1.1.6.jar"/>
>
> Are there any gotchas with the classpath loader?
> Thank you!
>
> -Joe
>