技术文章 - CS305575

在 Windchill PDMLink 中创建/删除 Solr 核心失败,并出现“错误 HTTP 错误 401”

已修改: 31-May-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill PDMLink 11.1 to 12.1

说明

  • 创建 Solr 核心失败并出现错误
ERROR: Solr requires authentication for http://localhost:8085/solr/admin/info/system. Please supply valid credentials. HTTP code=401
  • 运行: solr.cmd create -c wblib -n wblib -d <Solr_Home>\solr_schemas\wblib出现错误
Error 401 Unauthorized / Error HTTP 401 Required Authentication 
  • 在 Unix 上手动创建 Solr 核心时,会抛出以下消息
HTTP/2 + SSL is not support in Java 8.
Configure Solr with HTTP/1.1 + SSL
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apps/ptc/Windchill_11.1/SolrServer/solr/server/solr-webapp/webapp/WEB-INF/lib/tika-app.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/apps/ptc/Windchill_11.1/SolrServer/solr/server/lib/ext/log4j-slf4j-impl-2.13.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
INFO  Setting javax.net.ssl.keyStorePassword
INFO  Setting javax.net.ssl.trustStorePassword

ERROR: Parse error : <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401 Unauthorized</h2>
<table>
<tr><th>URI:</th><td>/solr/admin/info/system</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>Unauthorized</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>

</body>
</html>
这是文章 305575 的 PDF 版本,可能已过期。最新版本 CS305575