Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2FA7ADA55 for ; Sun, 2 Sep 2012 04:57:13 +0000 (UTC) Received: (qmail 45947 invoked by uid 500); 2 Sep 2012 04:57:10 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 45691 invoked by uid 500); 2 Sep 2012 04:57:09 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 45463 invoked by uid 99); 2 Sep 2012 04:57:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2012 04:57:07 +0000 Date: Sun, 2 Sep 2012 15:57:07 +1100 (NCT) From: "shenjc (JIRA)" To: dev@lucene.apache.org Message-ID: <850869327.28141.1346561827857.JavaMail.jiratomcat@arcas> In-Reply-To: <181486062.28135.1346561588509.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org