My mistake, Using the sharedLib="lib/" attribute in the solr tag of solr.xml solved the problem.
J. On Mon, Sep 29, 2008 at 2:43 PM, Jérôme Etévé <[EMAIL PROTECTED]> wrote: > Hello all. > > I'm using a multicore installation and I've got a small issue with > the loading of our customized jars. > > Let's say I've got a class my.company.MyAnalyzer which is distributed > in a jar called company-solr.jar > > If I put this jar in the lib directory, at the solr home like this: > > $solr_home/: > solr.xml > core1/ > core2/ > lib/company-solr.jar > > , then the solr class loader adds properly the company-solr.jar to the > class loader, but then it's not possible to find those classes from > the cores. > For instance if you have core1/conf/schema.xml which makes use of the > my.company.MyAnalyzer class, it won't work because this class won't be > found. > > At the moment, I solved the pb by duplicating the jar inside the two > cores like that: > > core1/lib/company-solr.jar > ... > core2/lib/company-solr.jar > > But I'm not very happy with this solution. > > Is there anyway to allow core shema files to references classes loaded > as jars in the top level lib path ? > > I'm running solr1.3.0 in tomcat 6.0.18 > > > Cheers !! > > Jerome. > > -- > Jerome Eteve. > > Chat with me live at http://www.eteve.net > > [EMAIL PROTECTED] > -- Jerome Eteve. Chat with me live at http://www.eteve.net [EMAIL PROTECTED]