Differences between revisions 1 and 2
Revision 1 as of 2008-06-26 12:26:13
Size: 2456
Editor: kfc
Comment: Created by the PackagePages action.
Revision 2 as of 2010-03-17 13:09:23
Size: 2458
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Download a recent (''and stable'') version of the Apache Tomcat. [http://tomcat.edu.brock.dk/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz Fx. 5.5.20], and unpack it to an appropriate place. Download a recent (''and stable'') version of the Apache Tomcat. [[http://tomcat.edu.brock.dk/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz|Fx. 5.5.20]], and unpack it to an appropriate place.

The Friendly Step-by-Step Guide for Setting Up the Summa Search Webservice

See also: SummaStorage

Step 1, Get a Tomcat Servlet Container

Download a recent (and stable) version of the Apache Tomcat. Fx. 5.5.20, and unpack it to an appropriate place.

Step 2, Configure Your Tomcat

Append the following all-in--nut-cracking-no-brain security policy to your conf/catalina.policy file:

grant {
      permission java.security.AllPermission;
};

Set the service ports in conf/server.xml as you wish. You want to pay attention to the following:

  • The port specified in the Server element. This is the shutdown port.

  • The non-SSL HTTP/1.1 Connector element
  • All other Connector elements (if any) can be removed.

Step 3, Install on Configure the summaws Webservice

Get summaws.war from the latest summa build. At the moment of writing this can be obtained from hera, /home/java-3part/summa/build-4217/summaws.war. Put it in your Tomcats webapps directory.

From your Tomcat root dir, do

cd webapps && mkdir summaws && cd summaws && unzip ../summaws.war

From the Tomcat root dir the relevant configuration files can now be found in webapps/summaws/WEB-INF/classes. Here's a checklist:

  • searchEngine.properties.xml

    • paths should be correct
    • io_service should be something like //localhost:7999/SummaDOMSStorage
  • cluster.properties.xml

    • Set correct paths
  • log4j.xml

    • Set correct paths and log levels
  • Suggestion.properties.xml

    • Set correct path

Step 4, Start the Tomcat

From the Tomcat root directory do

bin/startup.sh

To shut down the Tomcat issue

bin/shutdown.sh

Step 5, Testing the Webservice

You can obtain a list of services on http://alhena:7920/summaws/services (without a trailing slash!). You should be able to derive the method calling syntax from the examples below - keeping in mind that method arguments must be listed in reverse!:

SummaSearchWebservice (last edited 2010-03-17 13:09:23 by localhost)