Yonik is right.  You wouldn't need the web-app configuration in resin.conf
if you rename solr-nightly.war to solr.war.  Resin will expand all war files
in its webapps directory automatically.

For Resin, the default location for
conf files: <resin root>/solr/conf
index directory: <resin root>/solr/data

As Yonik has pointed out, you can override the default by adding
-Dsolr.solr.home=<your solr home> when starting resin/solr.  If
you use httpd.sh, it will look something like:

httpd.sh start -Dsolr.solr.home=/foo/bar/solr

By the way, the problem in Resin's XML parsed has been fixed in the
snapshot release and will be included in 3.0.19.

Bill

On 4/18/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
>
> On 4/18/06, Ken Krugler <[EMAIL PROTECTED]> wrote:
> > 2. Cloned/edited the resin.conf file to include a mapping for Solr, by
> adding:
> >
> >        <web-app id='/solr/'>
> >         <document-directory>webapps/solr-nightly</document-directory>
> >        </web-app>
>
> I normally just copy the war to solr.war, so I don't need the mapping...
>
> > 3. Started up Resin.
> >
> > It created the <resin root>/webapps/solr-nightly directory, as
> > expected, but then when I tried to use the Solr servlet it complained
> > about not finding solrconfig.xml (see stack trace at end of email).
>
> By default, Solr looks in the current-working-directory/solr/conf for
> solrconfig.xml and schema.xml, and creates the index under
> current-working-directory/solr/data
>
> One way you can direct Solr to a different home location is setting
> the solr.solr.home property...
> ./startup -Dsolr.solr.home=/foo/bar/solr
>
> > 4. I realized that there was no solrconf folder included by default
> > in the .war, so I added it inside of the <resin
> > root>/webapps/solr-nightly directory. Same result. Tried moving it to
> > inside of WEB-INF, same thing.
> >
> > 5. I uncommented out the lines in the web.xml file that Yonik
> > indicated were necessary to get Resin to work properly with Solr, but
> > that didn't change anything.
>
> That part will come into play parsing solrconfig.xml and schema.xml
>
> -Yonik
>

Reply via email to