SRW installation on the DSpace server

Record of steps for installation of OCLC's SRW/U Server on Drexel's DSpace machine.

Went to the OCLC Research SRW Server 2.0 Installation Instructions and downloaded SRW.zip and unpacked it in /usr/local/, then

# cd /usr/local/SRW-2.0/
# chown -R dspace:dspace .
# chmod -R g+w .

Then as user dspace I edited conf/SRWServer.props to change db.DSpace.home=d:/dspace/ to db.DSpace.home=/dspace/ and the db.DSpace.configuration line to db.DSpace.configuration=config/DSpace.SRWDatabase.props

Then I copied conf/DSpace.SRWDatabase.props to /dspace/config. Edited lines in that to brand the site and set administrator and added this important line:

indexSynonym.cql.serverChoice=default

That line sets the default query (e.g. query=horses) to search the "default" field in lucene, which is the same one that's searched in the "simple search" on the DSpace site.

Then I ran

$ ../apache-tomcat-5.5.17/bin/shutdown.sh
$ ant deploy
$ rm -Rf ../apache-tomcat-5.5.17/webapps/SRW
$ ../apache-tomcat-5.5.17/bin/startup.sh

Then later (much later) I figured out I had to edit /usr/local/SRW-2.0/build.properties and change the beginning of it to read:

# specify the name of the webapp.  Some sites use SRW in lower case.
webappName=SRW

# if you want the "deploy" ant target to work, you need to specify the location
# of your tomcat server below

serverPath=/usr/local/apache-tomcat-5.5.17/

# if you want support for DSpace included within the SRW server, provide
# the path to the directory that has the dspace, lucene and postgresql jars.
# if this property is not defined, then DSpace support will not be included.

dspaceLib=/dspace/lib

Instructions to edit the build.properties file are hidden in the very beginning of the Installation Instructions.

Also, I noticed D:\Apache Tomcat 4.1\webapps was showing up in weird places in the filesystem -- found it in conf/server-config.wsdd and replaced it with /usr/local/apache-tomcat-5.5.17/webapps -- but they're still showing up.

keywords: SRW, SRU, DSpace created 2007-01-19 last modified 2008-08-01