Solr 7.3.0 loading OpenNLPExtractNamedEntitiesUpdateProcessorFactory

Solr 7.3.0 loading OpenNLPExtractNamedEntitiesUpdateProcessorFactory

Hi all,

I'm running into a small problem loading
the OpenNLPExtractNamedEntitiesUpdateProcessorFactory class, getting an
error saying it's not found. I'm loading all the required jar files,
according to the readme:

Can you share a solr.log file created just after a Solr restart? Not
just a reload -- I'm asking for a restart so the log is more complete.
With that, I can see what's happening and then ask more questions that
may pinpoint something.

I'm pretty sure the paths to load the jars in analysis-extras is correct, the jars in /contrib/analysis-extras/lib load fine. I verified this by changing the name of solr.OpenNLPTokenizerFactory to solr.OpenNLPTokenizerFactory2 and saw the new error. Changing it back to solr.OpenNLPTokenizerFactory (without the "2") doesn't throw any errors, so I'm assuming these two jar files (opennlp-maxent-3.0.3.jar and opennlp-tools-1.8.3.jar) must be loading.

I tried swapping the order in which these jars are loaded as well, but no luck there.

I have attached my solr.log file after a restart. Also included is my solrconfig.xml and managed-schema. The path to my config is /Users/ryan/solr-7.3.0/server/solr/nlp/conf and this is where I have the OpenNLP bin files (en-ner-person.bin, en-sent.bin, and en-token.bin). Configs are derived from the _default configset.

Can you share a solr.log file created just after a Solr restart? Not
just a reload -- I'm asking for a restart so the log is more complete.
With that, I can see what's happening and then ask more questions that
may pinpoint something.

> Hi Shawn,
>
> I'm pretty sure the paths to load the jars in analysis-extras is correct,
> the jars in /contrib/analysis-extras/lib load fine. I verified this by
> changing the name of solr.OpenNLPTokenizerFactory to solr.OpenNLPTokenizerFactory2
> and saw the new error. Changing it back to solr.OpenNLPTokenizerFactory
> (without the "2") doesn't throw any errors, so I'm assuming these two
> jar files (opennlp-maxent-3.0.3.jar and opennlp-tools-1.8.3.jar) must be
> loading.
>
> I tried swapping the order in which these jars are loaded as well, but no
> luck there.
>
> I have attached my solr.log file after a restart. Also included is my
> solrconfig.xml and managed-schema. The path to my config
> is /Users/ryan/solr-7.3.0/server/solr/nlp/conf and this is where I have the
> OpenNLP bin files (en-ner-person.bin, en-sent.bin, and en-token.bin).
> Configs are derived from the _default configset.
>
> On a mac, and my Java version is:
>
> java version "1.8.0_45"
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
>
> Thanks,
> Ryan
>
>
>
> On Sun, 8 Apr 2018 at 21:34 Shawn Heisey <[hidden email]> wrote:
>
>> On 4/8/2018 2:36 AM, Ryan Yacyshyn wrote:
>> > I'm running into a small problem loading
>> > the OpenNLPExtractNamedEntitiesUpdateProcessorFactory class, getting an
>> > error saying it's not found. I'm loading all the required jar files,
>> > according to the readme:
>>
>> You've got a <lib> element to load analysis-extras jars, but are you
>> certain it's actually loading anything?
>>
>> Can you share a solr.log file created just after a Solr restart? Not
>> just a reload -- I'm asking for a restart so the log is more complete.
>> With that, I can see what's happening and then ask more questions that
>> may pinpoint something.
>>
>> Thanks,
>> Shawn
>>
>>

Have you tried starting Solr with the "-v" option? That will show you
exactly (in the solr.log file) where every jar is loaded from. Make
sure you are
1> loading the jar at all
2> loading the jar you think you are (i.e. not loading an old version
from somewhere on your classpath).

Copying jar files around is often a source of user error, you can wind
up loading them from someplace unexpected..