2011-08-04 20 views
1

當我嘗試使用集羣組件運行Solr時,出現以下錯誤。Solr ClusteringComponent Carrot2:ClassNotFoundException

java.lang.NoClassDefFoundError: org/carrot2/core/ControllerFactory 
    at org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.<init>(CarrotClusteringEngine.java:101) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 
    at java.lang.Class.newInstance0(Class.java:355) 

我已經包括使用

<lib dir="/usr/local/jetty/solr/lib/" regex="apache-solr-clustering-.*\.jar" /> 

的Apache的Solr的-clustering.3.2.0.jar但它看起來像我丟失了一些carrot2 jar文件。我找不到任何文件來表明我還缺少什麼或者我做錯了什麼。

請幫

回答

4

我認爲你需要從contrib/clustering/lib/

包括罐