[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Kass updated SOLR-3781: --- Attachment: LoadAdminUiServlet_take2.patch Based on Alin and Stefan's comment, I added the prefix to the contextPath and now everything seems to work. The take2 patch alone-- with no changes to any .js files-- seems to solve the problem. (I now explicitly parse out the prefix before the /admin.html and add it to the context path as well as the initial get resource call.) 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: Bug 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 Priority: Minor Labels: patch Attachments: LoadAdminUiServlet.patch, LoadAdminUiServlet_take2.patch Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Kass updated SOLR-3781: --- Attachment: web.xml For testing purposes, I'm including my web.xml file that I tested my patch with, which is a minimal modification of the one that comes with solr-4.2.1's example. I use the /test prefix (instead of the suggested /solr prefix) to make it clearer where it's getting inserted. As stated in the web.xml, all the css, img, js, tpl directories, plus admin.html, must be placed into a test directory under solr-webapp/webapp. 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: Bug 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 Priority: Minor Labels: patch Attachments: LoadAdminUiServlet.patch, LoadAdminUiServlet_take2.patch, web.xml Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Kass updated SOLR-3781: --- Attachment: (was: LoadAdminUiServlet_take2.patch) 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: Bug 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 Priority: Minor Labels: patch Attachments: LoadAdminUiServlet.patch, web.xml Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Kass updated SOLR-3781: --- Attachment: LoadAdminUiServlet_take2.patch Original posting of the take2 patch contained incorrect path information on the files... fixed it. 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: Bug 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 Priority: Minor Labels: patch Attachments: LoadAdminUiServlet.patch, LoadAdminUiServlet_take2.patch, web.xml Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Matheis (steffkes) updated SOLR-3781: Component/s: web gui Fix Version/s: 4.4 5.0 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: Bug Components: SolrCloud, web gui Affects Versions: 4.0-BETA Environment: win7 jetty-distribution-7.6.5.v20120716 startup param: -Djetty.port=8084 -DzkRun -Dbootstrap_conf=true Reporter: shenjc Priority: Minor Labels: patch Fix For: 5.0, 4.4 Attachments: LoadAdminUiServlet.patch, LoadAdminUiServlet_take2.patch, web.xml Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Kass updated SOLR-3781: --- Attachment: LoadAdminUiServlet.patch Fix for not finding admin.html with prefix 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: Bug 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 Priority: Minor Labels: patch Attachments: LoadAdminUiServlet.patch Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-3781: --- Fix Version/s: (was: 4.0) Issue Type: Bug (was: Improvement) I agree we should try to fix these issues to make the various code paths respect the prefix-path in the web.xml, but since: a) this affects a fairly small number of advanced users b) there is not yet any patch ...i'm going to remove the 4.0 fixVersion so that this issue doesn't impeed momentum towards the (hopefully) rapidly approaching release. 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: Bug 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 Priority: Minor Labels: patch Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shenjc updated SOLR-3781: - 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 js main.js 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 was: 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 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 Labels: patch Fix For: 4.0 Original Estimate: 24h Remaining Estimate: 24h 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 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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shenjc updated SOLR-3781: - 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 prefixPat-xxx jsdir--js js filemain.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 was: 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 -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 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 Labels: patch Fix For: 4.0 Original Estimate: 24h Remaining Estimate: 24h 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 prefixPat-xxx jsdir--js js filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shenjc updated SOLR-3781: - 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 -js main.js -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 was: 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 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 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 Labels: patch Fix For: 4.0 Original Estimate: 24h Remaining Estimate: 24h 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 -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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shenjc updated SOLR-3781: - 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 filemain.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 was: 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 prefixPat-xxx jsdir--js js filemain.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 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 Labels: patch Fix For: 4.0 Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
[ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] shenjc updated SOLR-3781: - Priority: Minor (was: Major) 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 Priority: Minor Labels: patch Fix For: 4.0 Original Estimate: 24h Remaining Estimate: 24h 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 filemain.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 -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org