Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as:
来源:互联网 发布:公司制律师事务所知乎 编辑:程序博客网 时间:2024/06/05 06:36
问题:Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: /home/solr_home/collection1/../../../contrib/extraction/lib
解决:解决方法是把 solr 源文件包里面的文件夹 contrib和dist 复制到目录 tomcat/solr/collection1/conf 里面。
我的命令: 进入solr软件的根目录 (这个solr目录不是tomcat里的solr目录,我的目录为 /home/hadoop/solr/ )
cp contrib/ /usr/tomcat/solr/collection1/conf/
cp dist/ /usr/tomcat/solr/collection1/conf/
并修改 tomcat/solr/collection1/conf/solrconfig.xml 文件
默认配置文件:
<lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
<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" />
修改成自己相应的路径。
- Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as:
- solr搭建过程中控制台报错: Can't find (or read) directory to add to classloader: ../../../contrib/extraction/li
- 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
- 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
- perl---use lib or BEGIN{ } to add directory to @INC
- can't get git rev, you should add git to system path or just input test value, such as 'testTinkerId
- Excel to CI - Can't find Project or Library
- rmmod: can't change directory to '3.4.39': No such file or directory 解决方法
- Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or
- R can't be resolved to a variable解决办法
- Error---Uri can't be resolved to a type
- JSONObject can't be resolved to a type解决办法
- man: can't change directory to '/root': Permission denied
- Can't read [proguard.ClassPathEntry@1a0c10f] (No such file or directory)
- Can't read proguard.ClassPathEntry@1a0c10f (No such file or directory)
- C#网络编程(一)------最简单的基于cs的sokect通讯程序
- JAVA设计模式
- php采集页面内容并自动转码
- 04-2. 打印九九口诀表(15)
- android项目 之 记事本(2)------- 添加照片
- Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as:
- 04-3. 统计素数并求和(20)
- 各种排序算法
- 04-4. 猜数字游戏(15)
- POJ-3169 Layout
- UVA12716 GCD XOR 数论数学构造
- 05-0. 求序列前N项和(15)
- Python学习杂记五
- android之内容提供者解析