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>(ToTheGoCustom.java:23)
        at
tothego_custom.ToTheGoCustomFactory.getInstance(ToTheGoCustomFactory.java:18)
        at
org.apache.solr.update.processor.UpdateRequestProcessorChain.createProcessor(UpdateRequestProcessorChain.java:74)
        ....
Caused by: java.lang.ClassNotFoundException:
db.connection.DBConnectionManager
        ....
        ... 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: 
http://lucene.472066.n3.nabble.com/Solr-custom-plugins-is-it-possible-to-have-them-persistent-tp3292781p3300614.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to