While pursuing the check with java 5, I tried to recreate the original
problem.
It took me a while, and I've discovered that underlying it all was a
PEBKAC situation.

Before reading the docs, I tried putting my custom.jar into any and
every directory that had jars.
After reading the docs, I put it in example/solr/lib, but didn't remove
it from example/ext. Whoops.

Long story short, putting the custom.jar into example/solr/lib worked
with java 5 and 6, so long as it wasn't also in example/ext.

/dev

-----Original Message-----
From: Chris Hostetter [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 3:34 AM
To: solr-user@lucene.apache.org
Subject: RE: Custom Tokenizer

Sorry, one other thing to verify... did you see an INFO message like
this logged at somepoint...

        Adding 'custom.jar' to Solr classloader

also be on the lookout for "Can't construct solr lib class loader"


: Date: Fri, 9 Feb 2007 00:30:33 -0800 (PST)
: From: Chris Hostetter <[EMAIL PROTECTED]>
: Reply-To: solr-user@lucene.apache.org
: To: solr-user@lucene.apache.org
: Subject: RE: Custom Tokenizer
:
:
: : Yes, this is with the Jetty that comes with Solr. Right now I'm just
: : familiarizing myself with everything.
:
: i ment to follow up on this earlier and it slipped through the cracks,
: just to clarify, what you attempted was:
:
: 1) wrote a new Tokenizer
: 2) wrote a new TokenizerFactory that subclassed BaseTokenizerFactory
: 3) compiled these classes, and put them in some "custom.jar"
: 4) put custom.jar in ./example/solr/lib/
: 5) started jetty from ./example using "java -jar start.jar"
:
: ...does that sound right?
:
: could you by anychance try this again using java 1.5 -- i'm wondering
if
: something subtle changed in the 1.6 classloaders
:
: : smithde ~>java -version
: : java version "1.6.0"
: : Java(TM) SE Runtime Environment (build 1.6.0-b105)
: : Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
: :
: : /dev
: :
: :
: : -----Original Message-----
: : From: Chris Hostetter [mailto:[EMAIL PROTECTED]
: : Sent: Monday, February 05, 2007 12:52 AM
: : To: solr-user@lucene.apache.org
: : Subject: Re: Custom Tokenizer
: :
: :
: : : to develop and build the factory and tokenizer. However, when I
start
: : : solr up, I get a stack trace, that says
: : "java.lang.NoClassDefFoundError:
: : : org/apache/solr/analysis/BaseTokenizerFactory" That's really
: : confusing.
: : :
: : : Any thoughts on what I'm missing/doing wrong?
: :
: : based on your stack trace, this is with Jetty right? ... this is
very
: : strange, i definitely tested the whole "plugin lib" thing under
Jetty
: : when i worked on it...
: :
: : http://issues.apache.org/jira/browse/SOLR-68
: :
: : ..can you verify which version of jetty you are using (ie: is it the
: : example install from Solr?) and what OS and JVM you are running?
: :
: :
: : -Hoss
: :
:
:
:
: -Hoss
:



-Hoss

Reply via email to