shenjc created SOLR-3781:
----------------------------

             Summary: when wiring Solr into a larger web application which 
controls the web context root,something can't work
                 Key: SOLR-3781
                 URL: https://issues.apache.org/jira/browse/SOLR-3781
             Project: Solr
          Issue Type: Improvement
          Components: SolrCloud
    Affects Versions: 4.0-BETA
         Environment: win7 jetty-distribution-7.6.5.v20120716

startup param:
-Djetty.port=8084 -DzkRun -Dbootstrap_conf=true
            Reporter: shenjc
             Fix For: 4.0


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
                     js
                        main.js

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to