Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Change Solr/Jetty "root context” (default) contextPath =“/“ ?

Hi Joakim,

I will post the question again to Solr-Users but did not receive any reply before.
Solr-Users discussion seems mostly about using the search tool app Solr deployed via Jetty, not about Jetty or Jetty config so I’m not very hopeful.
Is there any other/better place where Jetty configuration of deployed apps is discussed?

On Nov 7, 2016, at 9:04 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:

At this point I think you'll have better luck on the solr mailing lists.


Joakim Erdfelt / joakim@xxxxxxxxxxx

On Sun, Nov 6, 2016 at 11:06 PM, matthew grisius <matthew.grisius@xxxxxxxxxxx> wrote:
Hi Simone,

What I meant to say was Solr is deployed to “/solr” and is then mapped to “/“, e.g. http://localhost:8983/ gets mapped to http://localhost:8983/solr/#.
My apology for the confusion, I was cutting-n-pasting from another message and reversed the sense by accident.
I can add static content, add other servlets (java, clojure), etc.
I want to put a different servlet at “/“ while preserving Solr functionality at “/solr”.
My unsuccessful attempts included:

- edit contexts/solr-jetty-context.xml (contextPath, add resourceBase, etc.)
- unmap solr rewrite rule to pass thru . . .
- edit other '/contexts/' . . .
- edit etc/webdefault.xml . . .
- bin/solr does not appear to affect "/"
- org.apache.solr.util.SolrCLI does not appear to affect "/"

Perhaps I’m not trying the right combination of things in the right order to solve the issue, but I’ve run out of simple ideas to try.
This is my first project using Jetty so I am not familiar with any idiosyncrosies . . .

-matt.

On Nov 6, 2016, at 3:15 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:

Hi,

On Sun, Nov 6, 2016 at 5:00 PM, matthew grisius
<matthew.grisius@xxxxxxxxxxx> wrote:
I migrated my Solr 4.x app from old style war deployment via tomee plus to newer style Solr 6.x using Jetty.
Solr deploys using the "root context” (default) contextPath = “/“.
I want to change Solr to use a different contextPath, e.g. “/solr" and have exceeded/exhausted my new Jetty user knowledge/options.
I asked on "Solr User” and received no replies.
Perhaps I’m missing something simple?

Thanks, any ideas/suggestions would be really appreciated!

Downloading the Solr 6.2.1 distribution, I see there is a context file
$solr/server/contexts/solr-jetty-context.xml, which references a
property called "hostContext", which is also referenced in
$solr/server/solr/solr.xml.

I don't know Solr, but looks that the default is to deploy to /solr,
not to the root context.

Have you tried playing with those files and the "hostContext" property ?

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top