You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Maciej Lisiewski <c2...@poczta.fm> on 2010/12/09 07:57:03 UTC

Problem with loading a class

I am trying to use StempelPolishStemFilter:

I've added
<filter class="solr.StempelPolishStemFilterFactory" language="Polish"/>
to analyzer in fieldtype in schema.xml, restarted Jetty, and got:

org.apache.solr.common.SolrException: Error loading class 
'solr.StempelPolishStemFilterFactory'
[...]
Caused by: java.lang.ClassNotFoundException: 
solr.StempelPolishStemFilterFactory

So I tried putting 
contrib/analysis-extras/lucene-libs/lucene-stempel-3.1-2010-12-06_10-23-49.jar 
  in ./lib and ./lucene-libs - same result.

Next I tried pointing solr to jars by putting <lib dir= and/or <lib 
path= in solrconfig.xml, tried both relative and absolute paths only to 
get the very same error message.

After 11 hours of trying to get it to work I'm officialy out of ideas - 
I'd really appreciate any help.

I'm using solr 3.1 2010-12-06 nightly (Stempel is only available for 3.1 
and 4.0).

-- 
Maciej Lisiewski


----------------------------------------------------------------------
Gra dla duzych chlopcow.
http://linkint.pl/f2717


Re: Problem with loading a class

Posted by Maciej Lisiewski <c2...@poczta.fm>.
Just checked logs:

Dec 9, 2010 3:12:42 PM org.apache.solr.core.SolrResourceLoader 
replaceClassLoader
INFO: Adding 
'file:/var/www/solr/searchPr/lib/lucene-stempel-3.1-2010-12-06_10-23-49.jar' 
to classloader

[..]

Dec 9, 2010 3:12:42 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error loading class 
'solr.StempelPolishStemFilterFactory'


What am I doing wrong?


> I am trying to use StempelPolishStemFilter:
>
> I've added
> <filter class="solr.StempelPolishStemFilterFactory" language="Polish"/>
> to analyzer in fieldtype in schema.xml, restarted Jetty, and got:
>
> org.apache.solr.common.SolrException: Error loading class
> 'solr.StempelPolishStemFilterFactory'
> [...]
> Caused by: java.lang.ClassNotFoundException:
> solr.StempelPolishStemFilterFactory
>
> So I tried putting
> contrib/analysis-extras/lucene-libs/lucene-stempel-3.1-2010-12-06_10-23-49.jar
> in ./lib and ./lucene-libs - same result.
>
> Next I tried pointing solr to jars by putting <lib dir= and/or <lib
> path= in solrconfig.xml, tried both relative and absolute paths only to
> get the very same error message.
>
> After 11 hours of trying to get it to work I'm officialy out of ideas -
> I'd really appreciate any help.
>
> I'm using solr 3.1 2010-12-06 nightly (Stempel is only available for 3.1
> and 4.0).
>


----------------------------------------------------------------------
KONKURS! Wybierz nagrode roku i wygraj!
Sprawdz >> http://linkint.pl/f28a0


Re: Problem with loading a class

Posted by Chris Hostetter <ho...@fucit.org>.
: Caused by: java.lang.ClassNotFoundException:
: solr.StempelPolishStemFilterFactory
: 
: So I tried putting
: contrib/analysis-extras/lucene-libs/lucene-stempel-3.1-2010-12-06_10-23-49.jar
: in ./lib and ./lucene-libs - same result.

The lucene-stempel-*.jar file contains the StempelPolishStemFilter, but to 
use it in Solr you also need the StempelPolishStemFilterFactory which is 
in the apache-solr-analysis-extras-*.jar



-Hoss