今天学习solr在网找到整合的步骤启动tomcat总是403,404但是tomcat文件夹里明明有 ,那么如何解决呢
出现403
打开\apache-tomcat-8.0.42 8\webapps\solr\WEB-INF里面的web.xml,把下面这段配置注释掉!!!
<!-- Get rid of error message -->
<!-- <security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Enable everything but TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method-omission>TRACE</http-method-omission>
</web-resource-collection>
</security-constraint> -->
出现404可能是没有把jar复制完,有的教程只复制了\**\solr-7.2.1\server\lib\ext jar包把solr-7.2.1\server\lib\也要复制到
/apache-tomcat-8.0.42\webapps\solr\WEB-INF\lib下