lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Matheis (steffkes) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3781) when wiring Solr into a larger web application which controls the web context root,something can't work
Date Fri, 19 Apr 2013 09:57:17 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13636225#comment-13636225
] 

Stefan Matheis (steffkes) commented on SOLR-3781:
-------------------------------------------------

Sam, the attached patch looks good to me - at least the UI is (still) working after applying
the patch to solr's default-jetty-example.

bq. It doesn't solve the entire problem loading the admin page, as there still seems to be
a problem with the "cores" request not getting the prefix prepended, but it solves the explicit
problem the description specifies.

Could you be a bit more specific about that? the Servlet uses {{CoreContainer}}'s {{getAdminPath()}}
to get the correct path to {{/admin/cores}} .. which is, i guess, what you're talking about?

                
> 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 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

--
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


Mime
View raw message