错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
来源:互联网 发布:小草微信淘宝客 编辑:程序博客网 时间:2024/05/29 11:49
错误:java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.analysis.util.TokenizerFactory with name 'Whitespace' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.
解决:把
C:\CHRUAN\workspace\solr-4.1.0\lucene\analysis\common\src\resources
也加到classpath中:<classpathentry kind="src" path="lucene/analysis/common/src/resources"/>
错误详情:
java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.analysis.util.TokenizerFactory with name 'Whitespace' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.The current classpath supports the following names: []
at org.apache.lucene.analysis.util.AnalysisSPILoader.lookupClass(AnalysisSPILoader.java:116)
at org.apache.lucene.analysis.util.TokenizerFactory.lookupClass(TokenizerFactory.java:41)
at com.chruan.lucene.LuceneDemo.main(LuceneDemo.java:84)
参考:
http://www.cnblogs.com/tomcattd/archive/2013/02/01/2887444.html
- 错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
- An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene62' does not exist
- c++ class does not name a type
- c++ class does not name a type
- c++ class does not name a type
- class does not name a type
- c++ class does not name a type
- error: '[class name]' does not name a type
- TypeScript 错误“property does not exist on value of type”
- The type or namespace name 'Windows' does not exist in the class or namespace 'System'
- `QtValidLicenseForCoreModule' does not name a type 错误的解决
- ‘string’ does not name a type 错误解析
- ptrdiff_t does not name a type造成编译错误
- C++ - 错误"error: 'off64_t' does not name a type"
- ndk编译错误:error: 'override' does not name a type
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- QT编译错误: “class” dose not name a type解决方法
- error C2871: 'System' : a namespace with this name does not exist
- XSLT函数 累积更新
- QRCode 二维码批量打包生成
- html中上下左右拖拉横线控制div宽度示例
- ListView 上移下移、上调下调
- iOS 关于蓝牙开发的相关知识
- 错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
- 二分图最大匹配的应用
- MyEclipse配置Tomcat(图文解说版) .
- 切尔西Vs西汉姆 赛事分析
- __unset销毁对象
- to github小白:如何删除github中的repository(仓库)
- 产品与项目的区别
- ExpandableListView的使用
- ksh二次解析变量eval