solr搭建过程中控制台报错: Can't find (or read) directory to add to classloader: ../../../contrib/extraction/li
来源:互联网 发布:查看应用程序端口号 编辑:程序博客网 时间:2024/05/18 02:18
solr搭建过程中控制台报错:
olrResourceLoader – new SolrResourceLoader for directory: 'F:\zsolrwork\home\collection1\'
olrConfig – Adding specified lib dirs to ClassLoader
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/clustering/lib/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/langid/lib/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\lan
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/velocity/lib (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\ve
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
.SolrIndexConfig – IndexWriter infoStream solr logging is enabled
olrConfig – Adding specified lib dirs to ClassLoader
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/clustering/lib/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/langid/lib/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\lan
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../contrib/velocity/lib (resolved as: F:\zsolrwork\home\collection1\..\..\..\contrib\ve
olrResourceLoader – Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: F:\zsolrwork\home\collection1\..\..\..\dist).
.SolrIndexConfig – IndexWriter infoStream solr logging is enabled
解决方法:
方案一:
需要找到collection1/conf 目录下的solrconfig.xml文件,找到
<lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />
<lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
<lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar" />
<lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
<lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />
<lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
<lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />
将其注释掉,然后到sorl源目录中找到相应的jar包添加到项目的lib文件夹中。
方案二:
复制solr-4.5.0\contrib和\solr-4.5.0\dist文件夹,到任意一个目录下。
在collection1/config目录中找到solrconfig.xml文件
修改solrconfig.xml配置文件,将dir目录配置成绝对路径(该路径就是刚刚复制的contrib和dist文件夹地址),根据自己的jar路径进行配置,如:
阅读全文
1 0
- solr搭建过程中控制台报错: Can't find (or read) directory to add to classloader: ../../../contrib/extraction/li
- Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as:
- Excel to CI - Can't find Project or Library
- SQLiteException: Can't upgrade read-only database from version 0 to 1报错!
- rmmod: can't change directory to '/lib/modules': No such file or directory
- rmmod: can't change directory to '/lib/modules': No such file or directory问题解决
- rmmod: can't change directory to '3.4.39': No such file or directory 解决方法
- 卸载驱动出现:rmmod: can't change directory to '/lib/modules': No such file or directory
- rmmod: can't change directory to '/lib/modules': No such file or directory
- 卸载驱动出现:rmmod: can't change directory to '/lib/modules': No such file or directory
- react-native 运行github项目报错 Couldn't find preset “es2015” relative to directory
- perl---use lib or BEGIN{ } to add directory to @INC
- mac 下载源码 most ports 报错误 Unable to execute port: can't read "build.cmd":
- man: can't change directory to '/root': Permission denied
- Proguard打包混淆报错:can't find superclass or interface
- Proguard打包混淆报错:can't find superclass or interface
- Proguard打包混淆报错:can't find superclass or interface
- 安卓打包混淆报错:can't find superclass or interface各种警告找不到
- 通过maven下载源码和javadoc方法
- Ubuntu解决eclipse CDT 不能识别C++11新特性问题
- where,having与 group by连用的区别
- Retrofit okhttp使用
- 树莓派3 B型刷入centos7及安装wifi模块
- solr搭建过程中控制台报错: Can't find (or read) directory to add to classloader: ../../../contrib/extraction/li
- 【特征检测】HOG特征算法
- Eclipse 开发工具基础配置
- Centos7.3安装vsftp服务
- Demo积累
- Angular基础(五) 内建指令和表单
- 管理学笔记-作为领导如何管理自己
- 2017/8/21
- HOG特征提取代码(opencv处理基本数据,c语言实现基本算法)