SoFunction
Updated on 2024-11-10

About tomcat under the start solr encountered problems and solutions

Following the online tutorial down, I encountered two problems with startup after the configuration was complete:

1、Startup Times Error

log4j:ERROR setFile(null,true) call failed. FileNotFind: ...fault

The analysis is that there is a problem with the path to the log file when copying the log4j file, modify the file:

Just modify it to your own tomcat logs log directory.

2. After solving the above problems, you can start normally

Visit the Times HTTP Status 403 - Access to the requested resource has been deniedbugs

After several attempts to find a solution

Finally find a way to open the file

Comment out the security-constraint tag <security-constraint> at the very bottom

Restart tomcat to access the solr service page normally.

summarize

The above is a personal experience, I hope it can give you a reference, and I hope you can support me more.