Dspace 6.3 Tomcat搜索功能异常求助:Solr 404及浏览页500报错
DSpace 6.3 部署在Tomcat上搜索及浏览功能异常排查
问题现象
搜索功能报错
预期MIME类型为application/octet-stream,但实际获取到text/html。
<!doctype html>HTTP Status 404 – Not Found body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;} <h1>HTTP Status 404 – Not Found</h1> <p><b>Type</b> Status Report</p> <p><b>Message</b> /solr/search/select</p> <p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p> <h3>Apache Tomcat/8.5.50</h3>
作者浏览功能异常
访问 http://localhost:8080/xmlui/handle/123456789/1/browse?type=author 时返回500错误。
访问日志记录
127.0.0.1 - - [17/Jan/2025:11:37:35 -0500] "POST /solr/search/select HTTP/1.1" 404 735 127.0.0.1 - - [17/Jan/2025:11:37:35 -0500] "POST /solr/search/select HTTP/1.1" 404 735 127.0.0.1 - - [17/Jan/2025:11:37:35 -0500] "POST /solr/search/select HTTP/1.1" 404 735 127.0.0.1 - - [17/Jan/2025:11:37:35 -0500] "GET /xmlui/handle/123456789/1 HTTP/1.1" 200 16116 127.0.0.1 - - [17/Jan/2025:11:37:35 -0500] "GET /xmlui/static/icons/feed.png HTTP/1.1" 200 691 127.0.0.1 - - [17/Jan/2025:11:37:38 -0500] "POST /solr/search/select HTTP/1.1" 404 735 127.0.0.1 - - [17/Jan/2025:11:37:38 -0500] "POST /solr/search/select HTTP/1.1" 404 735 127.0.0.1 - - [17/Jan/2025:11:37:38 -0500] "GET /xmlui/handle/123456789/1/browse?type=author HTTP/1.1" 500 40838 127.0.0.1 - - [17/Jan/2025:11:38:53 -0500] "GET /solr HTTP/1.1" 404 713
已尝试的操作
- 替换solr、jspui、xmlui及oai相关文件
- 重启Tomcat服务,但问题未解决
排查及解决方案
1. 确认Solr服务部署状态
- 检查Tomcat的
webapps目录下是否存在solr应用文件夹,若不存在,将DSpace安装目录webapps下的solr war包复制到Tomcat的webapps目录,重启Tomcat等待自动解压。 - 访问
http://localhost:8080/solr验证服务是否可用,若仍404,查看Tomcat日志tomcat/logs/catalina.out排查部署失败原因。
2. 检查DSpace Solr路径配置
- 编辑
dspace/config/dspace.cfg,确认以下配置项与实际部署一致:
若Solr上下文路径不是solr.server=http://localhost:8080/solr/ solr.search.server=${solr.server}search solr.authority.server=${solr.server}authority/solr,需同步修改上述配置。
3. 重建Solr索引
进入DSpace的bin目录,执行索引重建命令:
./dspace index-discovery
完成后重启Tomcat服务。
4. 验证Solr Authority核心状态
- 访问
http://localhost:8080/solr/admin/cores,确认是否存在authority核心。 - 若缺失,从DSpace安装包的solr配置模板中导入核心配置,创建对应核心。
5. 检查Tomcat上下文配置与权限
- 查看Tomcat的
conf/Catalina/localhost目录下的solr.xml,确认其指向的Solr数据目录、配置目录路径正确,且Tomcat运行用户对该目录有读写权限。
内容的提问来源于stack exchange,提问作者lets getit
相关产品推荐
相关产品推荐

