Solr没有处理DSpace安装

时间:2013-02-08 22:49:26

标签: java jsp solr dspace

尝试登录时,我收到以下错误页面(见底部):

http://localhost:8080/solr/admin/

到目前为止,我已经尝试过以下方法但没有成功:

  1. 重启Tomcat(无数次)
  2. 运行DSpace的命令(stats-log-converter& stats-log-importer
  3. 将原始安装中的所有内容(SQL和文件)复制到新安装中。
  4. 一点历史:

    主要症状是我们无法启动并运行统计信息。统计页面只返回空白页面。试图解决这个问题,我偶然发现了这一点,我怀疑这是罪魁祸首。

    这是错误:(也附有图片)

        HTTP Status 500 -
    
        type Exception report
    
        message
    
        description The server encountered an internal error () that prevented it from fulfilling this request.
    
        exception
    
        org.apache.jasper.JasperException: Unable to compile class for JSP: 
    
        An error occurred at line: 32 in the jsp file: /admin/index.jsp
        The method getRequestHandlers() in the type SolrCore is not applicable for the arguments (Class<ReplicationHandler>)
        29: <%-- jsp:include page="header.jsp"/ --%>
        30: <%-- do a verbatim include so we can use the local vars --%>
        31: <%@include file="header.jsp" %>
        32: <%boolean replicationhandler = !core.getRequestHandlers(ReplicationHandler.class).isEmpty();%>
        33: <br clear="all">
        34: <table>
        35: 
    
    
        Stacktrace:
            org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
            org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
            org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
            org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
            org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
            org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
            org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:295)
            org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:60)
        note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.
    
        Apache Tomcat/6.0.26
    

    SOLR error

1 个答案:

答案 0 :(得分:1)

看起来版本不匹配或与jar文件的版本兼容性问题。

清理后尝试运行全新安装。确保Solr模块中的所有Jars都在/WEB-INF/lib

参考:http://permalink.gmane.org/gmane.comp.db.dspace.user/15055