Solr
  1. Solr
  2. SOLR-165

Improved Doc on setting env solr/home

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      None
    • Environment:

      linux/tomcat

      Description

      It would be nice if this page included the following to
      http://wiki.apache.org/solr/SolrTomcat

      Here is an example on linux, note the full path to the solr.war and the use of $

      {catalina.home}.
      <Context docBase="${catalina.home}

      /webapps/solr.war" debug="0" crossContext="true" >
      <Environment name="solr/home" type="java.lang.String" value="/home/data/solr" override="true" />
      </Context>

        Activity

        Hide
        Erik Hatcher added a comment -

        That page is on our wiki... feel free to create a wiki account (self-serve) and adjust the documentation. Thanks!

        Show
        Erik Hatcher added a comment - That page is on our wiki... feel free to create a wiki account (self-serve) and adjust the documentation. Thanks!
        Hide
        Eric Passmore added a comment -

        updated wiki

        Show
        Eric Passmore added a comment - updated wiki
        Hide
        Hoss Man added a comment -

        FYI: that's not setting the solr.solr.home enviornment variable – it's setting the solr/home JNDI variable ... and we already have several examples of that on the SolrTomcat page (in the sections "Configuring Solr Home with JNDI", "Multiple Solr Webapps", and the windows section)

        i'm not sure that we really need another example of the same thing just because it's linux and the paths don't start with a drive letter.

        Show
        Hoss Man added a comment - FYI: that's not setting the solr.solr.home enviornment variable – it's setting the solr/home JNDI variable ... and we already have several examples of that on the SolrTomcat page (in the sections "Configuring Solr Home with JNDI", "Multiple Solr Webapps", and the windows section) i'm not sure that we really need another example of the same thing just because it's linux and the paths don't start with a drive letter.
        Hide
        Ryan McKinley added a comment -

        something has changed that makes things blow up if you don't set the solr.solr.home property. In resin (at least), it is not enough to just set the JNDI variable, you must also set the system property:

        <web-app id="/solr/"
        document-directory="/path/to/solr/webapp/solr"
        archive-path="/path/to/solr/webapp/solr.war">
        <system-property solr.solr.home="/path/to/solr"/>

        <env-entry>
        <env-entry-name>solr/home</env-entry-name>
        <env-entry-type>java.lang.String</env-entry-type>
        <env-entry-value>/path/to/solr</env-entry-value>
        </env-entry>
        </web-app>

        I have not looked into why...

        Show
        Ryan McKinley added a comment - something has changed that makes things blow up if you don't set the solr.solr.home property. In resin (at least), it is not enough to just set the JNDI variable, you must also set the system property: <web-app id="/solr/" document-directory="/path/to/solr/webapp/solr" archive-path="/path/to/solr/webapp/solr.war"> <system-property solr.solr.home="/path/to/solr"/> <env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>/path/to/solr</env-entry-value> </env-entry> </web-app> I have not looked into why...
        Hide
        Eric Passmore added a comment -

        Hmm, last night as I was doing the install it wasn't clear to me that the windows examples were applicable. Its a trivial issue, so I removed my entry.

        Show
        Eric Passmore added a comment - Hmm, last night as I was doing the install it wasn't clear to me that the windows examples were applicable. Its a trivial issue, so I removed my entry.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eric Passmore
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development