Hi,

Since Solr 5.x there is no web archive (war) in standard distribution.
So I'm building a web archive (war) and I'm deploying it in my Tomcat
8 container. It works to Solr 5.3. Since Solr 5.4 it doesn't works
(admin's page doesn't works). A problem is with
org.apache.solr.servlet.LoadAdminUiServlet (doGet method). During
debugging this method i noticed that in Tomcat request.getRequestURI()
method returns only a context path (without admin.html). So variable
admin has a value "/" and
getServletContext().getResourceAsStream(admin) returns null. Finally
doGet method returns 404.
Following is a code

...
String admin = 
request.getRequestURI().substring(request.getContextPath().length());
                     <- admin is "/"
CoreContainer cores = (CoreContainer)
request.getAttribute("org.apache.solr.CoreContainer");
InputStream in = getServletContext().getResourceAsStream(admin);
                                        <- in is null
...

How can I solve this problem?

Best regards,

Reply via email to