On 1/23/2014 4:57 AM, saurish wrote: > I am new to solr and successfully did a basic search. Now i am trying to do > classification of the search results using carrrot's support which comes > with solr 4.5.1. Would appreciate if someone tells me what is that i am > missing...may be a trivial issue??!!! > > I am getting the below error..*java.lang.NoClassDefFoundError: > org/carrot2/core/ControllerFactory*. I know this error might be because of > carrot2 classes not getting loaded. But if you look below the jars in the > "../contrib/clustering/lib" directory are being loaded. but still i am > getting the error. what might be the reason? > > I am working with Solr 4.5.1 on tomcat 7.0.47.
Have you defined the sharedLib setting in your solr.xml file to point at these jars? If you have, you'll need to remove that. I've summarized the issues with jar loading and sharedLib on the 12/Nov/2013 comment for this issue: https://issues.apache.org/jira/browse/SOLR-4852 My recommendation for anyone that needs extra jars with Solr: Remove all <lib> directives from solrconfig.xml. Copy all jars that you actually require to ${solr.solr.home}/lib. Because you're on 4.5.1, remove the sharedLib setting from solr.xml. If you were on 4.2.1 or earlier, you'd need the sharedLib setting, with lib as the value. Thanks, Shawn