lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin T <>
Subject How to deploy Solr 5.5 in Tomcat 8
Date Mon, 29 Feb 2016 23:09:05 GMT

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)
InputStream in = getServletContext().getResourceAsStream(admin);
                                        <- in is null

How can I solve this problem?

Best regards,

View raw message