`
justinyao
  • 浏览: 39647 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

solr error:404 missing core name in path with solr

阅读更多

今天需要部署一个新的solr应用,使用熟悉的1.4版本,当把服务部署在tomcat时, http://ip:port/solr 页面可以打开
,但进入http://ip:port/solr/admin页面的时候却报出了错误:404 missing core name in path with solr,google上关于
这个问题的解决方案很少,试了几个都不管用,比如拷贝core0文件夹到solr.home目录,或修改web.xml文件,加上

<env-entry>
   <env-entry-name>solr/home</env-entry-name>
   <env-entry-value>/put/your/solr/home/here</env-entry-value>
   <env-entry-type>java.lang.String</env-entry-type>
</env-entry>

还是不行,最后上官网一查,发现这原来是1.4版本的一个bug,在某些特定的环境就会出现这种错误,可以通过打补丁解决,

但很奇怪之前部署的solr应用没有出现过这种情况,我的环境是linux,于是查看了其它的应用,发现solr使用jdni服务增加
应用的时候,是不能以solr.xml命名的,在tomcat/conf/Catalina/localhost 目录下,当把solr.xml文件放进来后,需

要把文件改下名称,例如改成solr-keyword.xml.这时候就不会报missing core name 的错误,能够正常访问admin的页面了,如果一定要命名为solr.xml,则可以原目录把solr-keyword.xml改成solr.xml,这样也是可以的.还有一个方法,就是清除掉tomcat里webapps目录下的全部应用,以及conf/Catalina/localhost目录下的所有xml文件,然后重新部署一遍solr,这样应该是也是可以的.

还有一点,solr.xml文件里的docBase必需指向绝对路径的war包,才能够加载到solr.home里的jar包.

分享到:
评论
1 楼 bestlovetoad 2013-11-04  
<env-entry-value>/put/your/solr/home/here</env-entry-value>
要写linux绝对路径。

相关推荐

    解决solr启动404问题

    配置solr出现404,试过很多方法解决不了,这有配置好的现成的,在wen.xml中将solrhome路径改成你创建的solrhome的路径

    node-solr:Node.js 的 Solr 模块

    Node.js 的 Solr 模块参考Node.js: : Solr: : 使用npm test运行测试。 如果您没有在 127.0.0.1:8983 上运行 Solr,请编辑“test/common.js”。使用示例请参阅使用测试。 这是一个快速示例: var solr = require ( ...

    puppet-ispconfig_solr:在 IspConfig 环境中使用的 solr 包装器

    puppet-ispconfig_solr == 定义:ispconfig_solr::instance 这个定义是 solr::instance 的包装器。 它创建一个 solr 实例并配置它以在 IspConfig 环境中使用 == 参数: [ instance_name ] solr 实例的名称。 实例...

    (solr系列:五) solr定时实时重建索引和增量更新-附件资源

    (solr系列:五) solr定时实时重建索引和增量更新-附件资源

    solr -8.11.1.zip 文件

    solr -8.11.1.zip 文件

    Laravel-4-Solr:Apache Solr简单查询客户端

    Laravel 4 Apache Solr Laravel 4软件包提供了一个接口,用于通过其静态接口使用(查询) 。安装首先通过Composer安装此软件包。 编辑项目的composer.json文件,以要求davispeixoto/laravel-4-solr 。 "require": {...

    Solr in action.mobi

    PART 2 CORE SOLR CAPABILITIES ..........................................195 7 ■ Performing queries and handling results 197 8 ■ Faceted search 250 9 ■ Hit highlighting 281 10 ■ Query suggestions ...

    Solr in Action最新完整版

    Readers will gain a deep understanding of how to implement core Solr capabilities such as faceted navigation through search results, matched snippet highlighting, field collapsing and search results ...

    Scaling Big Data with Hadoop and Solr

    As data grows exponentially day-by-day, extracting information becomes a tedious activity in itself. Technologies like Hadoop are trying to address some of the concerns, while Solr provides high-speed...

    Solr in Action英文版

    Solr in Action英文版,朋友从加拿大那边搞来的

    solrcore 添加修改控制

    solrcore 添加修改控制

    solr.war包solr.war包solr.war包solr.war包solr.war包

    solr.warsolr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包...

    Scaling.Big.Data.with.Hadoop.and.Solr.2nd.Edition.1783553391

    This is a step-by-step guide that will teach you how to build a high performance enterprise search while scaling data with Hadoop and Solr in an effortless manner. Table of Contents Chapter 1. ...

    solr入门学习

    运行容器:Tomcat6.0.20 Solr版本:apache-solr-1.4.0 分词器:mmseg4j-1.6.2 词库:sogou-dic

    Solr in Action

    Solr in Action is the definitive guide to implementing fast and scalable search using Apache Solr. It uses well-documented examples ranging from basic keyword searching to scaling a system for ...

    solr5.4.0完整包

    Solr 依存于Lucene,因为Solr底层的核心技术是使用Lucene 来实现的,Solr和Lucene的本质区别有以下三点:搜索服务器,企业级和管理。Lucene本质上是搜索库,不是独立的应用程序,而Solr是。Lucene专注于搜索底层的...

    Solr in action Source Code

    Solr in action 源代码。Solr实战源码。Solr实战源码。Solr实战源码。Solr实战源码

    java8看不到源码-ansible-role-solr:yauh.solr-用于设置Solr的Ansible角色

    看不到源码Solr 引导程序 设置 Solr 搜索平台的 Ansible 角色 要求 系统上需要有Java,推荐角色yauh.java8。 角色变量 以下变量可与 solr 角色一起使用: solr_source: http://apache.openmirror.de/lucene/solr # ...

    docker-compose 构建以solr8.11.1为基础的含中文分词器的镜像

    以solr8.11.1为基础镜像,使用docker-compose构建含中文分词器的新的镜像 文件夹内含有docker-compose.yml脚本、Dockerfile脚本以及构建镜像所需中文分词器ik-analyzer-8.5.0.jar、所有扩展词和停用词相关的配置文件...

Global site tag (gtag.js) - Google Analytics