Details
Description
if i am wiring Solr into a larger web application which controls the web context root, you will probably want to mount Solr under a path prefix (app.war with /app/solr mounted into it, for example).
For example:
RootApp.war-------- /
myApp.war---------------/myApp
prefixPath-------------------xxx
jsdir------------------------------js
js file--------------------------------main.js
admin file-------------------------admin.html
org.apache.solr.servlet.LoadAdminUiServlet
line:49 InputStream in = getServletContext().getResourceAsStream("/admin.html");
can't find admin/html because it's in the prefixPath directory
org.apache.solr.cloud.ZkController
line:149-150
this.nodeName = this.hostName + ':' + this.localHostPort + '_' + this.localHostContext;
this.baseURL = this.localHost + ":" + this.localHostPort + "/" + this.localHostContext;
it can't match this condition
baseURL need to be http://xx:xx/myApp/myPrefixPath
eg. http://xx:xx/myApp/xxx