好的,这是问题所在!事实证明,有些tomcat发行版没有对xalan的引用,这是XPathFactory异常的来源。此错误可能会引起误解,因为它将错误记录为solr
/ home属性未设置的问题。事实是它已被设置。10次中有9次由于未设置solr / home目录而导致启动solr出现问题。
这是我自己修复的方式:我进入
/usr/share/tomcat5/shared/lib目录并创建到目录中xalan-j2.jar文件的符号链接
/usr/share/java。重新启动Tomcat并立即启动Solr!
其他一些技巧:在
solr.war要上传的文件中编辑web.xml文件,将其取消封装,进行更改,然后重新将其封装。将目录设置为
/usr/share/solr。这样,如果日志未显示其使用该目录作为solr
/ home,则存在问题。另外,确保solr / home看起来像这样:
/usr/share/solr//usr/share/solr/bin/usr/share/solr/bin/rsyncd-stop/usr/share/solr/bin/abo/usr/share/solr/bin/scripts-util/usr/share/solr/bin/snappuller-disable/usr/share/solr/bin/backupcleaner/usr/share/solr/bin/snapcleaner/usr/share/solr/bin/rsyncd-disable/usr/share/solr/bin/snapinstaller/usr/share/solr/bin/commit/usr/share/solr/bin/snappuller-enable/usr/share/solr/bin/snappuller/usr/share/solr/bin/backup/usr/share/solr/bin/rsyncd-start/usr/share/solr/bin/abc/usr/share/solr/bin/rsyncd-enable/usr/share/solr/bin/optimize/usr/share/solr/bin/snapshooter/usr/share/solr/bin/readercycle/usr/share/solr/conf/usr/share/solr/conf/schema.xml/usr/share/solr/conf/solrconfig.xml/usr/share/solr/conf/synonyms.txt/usr/share/solr/conf/xslt/usr/share/solr/conf/xslt/example_atom.xsl/usr/share/solr/conf/xslt/luke.xsl/usr/share/solr/conf/xslt/example_rss.xsl/usr/share/solr/conf/xslt/example.xsl/usr/share/solr/conf/elevate.xml/usr/share/solr/conf/scripts.conf/usr/share/solr/conf/protwords.txt/usr/share/solr/conf/spellings.txt/usr/share/solr/conf/admin-extra.html/usr/share/solr/conf/stopwords.txt/usr/share/solr/README.txt
具有user:group权限的用户必须是tomcat:tomcat。如果solr正常启动,将创建数据目录。
希望这可以为某人节省大量时间。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)