lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "samuele.mattiuzzo" <>
Subject Re: Solr custom plugins: is it possible to have them persistent?
Date Thu, 01 Sep 2011 08:43:53 GMT
yay i did it! i wasn't that far away from the correct implementation, it just
was a bit tricky to understand how to...
now i've got a problem with my singleton class:

i have DBConnectionManager.jar put inside a folder (<lib
dir="../../../dist/custom/" regex="\*\.jar" /> from solrconfig.xml) but at
indextime i have this error:

Sep 1, 2011 10:21:28 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NoClassDefFoundError: db/connection/DBConnectionManager
        at tothego_custom.ToTheGoCustom.<init>(
Caused by: java.lang.ClassNotFoundException:
        ... 20 more

I did exactly how you told me: i created the DBConnectionManager singleton,
made the jar, put inside a folder (the one in the lib directive) and added
the lib directive in solrconfig.xml.

In ToTheGoCustomFactory i have import db.connection.*; and no errors at all,
but now solr doesn't find that class... what am i missing this time? i think
it's the last thing i need to understand now hehe :)

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message