S3B/SSCF/WebappInstallation

From Corrib Clan Wiki

Jump to: navigation, search

Contents

SSCF Webapplication installation guide

Prerequirements

Wordnet

See: WordNet Installation Notes

Tomcat

  • Install tomcat 6.0.*

Sesame

  • Download Sesame, put sesame webapp to tomcat/webapps, move all jars from tomcat/webapps/sesame/WEB-INF/lib to tomcat/lib
  • Edit tomcat/webapps/sesame/WEB-INF/system.conf and instert this repository definition:
<repository id='foafrealm-repository'>
 <title>FOAFRealm repository</title>
 <sailstack>
  <sail class='org.openrdf.sesame.sailimpl.sync.SyncRdfRepository'/>
  <sail class='org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository'>
   <param name='dir' value='/tmp/nativerdf-foafrealm/'/>
  </sail>
 </sailstack>
 <acl worldReadable='true' worldWriteable='true'/>
</repository> 
 
  • After successful sesame instalation - remove sesame.war from /webapps directory
  • Move all jars from webapps/sesame/WEB-INF/lib/ into tomcat/lib

Installation

Package

Download and unpack the latest SSCF package

Libraries

Copy all libraries from WEB-INF/lib/tomcat into your tomcat/lib directory

Webapplication

  • Put the following line into tomcat/conf/server.xml file:

Copy or symlink webapp code into tomcats webapp directory OR use docBase entry to point the tomcat to your webapp. To use FOAFRealm realm you need to add following into conf/server.xml file (between <host (...)></host>)

 <Context className="org.apache.catalina.core.StandardContext" cachingAllowed="true" 
	path="/bookmarks"
        privileged="true" reloadable="true" 
        [[doc Base]]="path to unpacked package"
 >
	<Realm [[class Name]]="org.foafrealm.realm.FOAFRealm" debug="99"/>
	<Valve [[class Name]]="org.foafrealm.realm.FOAFValve" debug="99"/>
 </Context>
  • Start tomcat server
  • Now you could access your service by invoking:

http://host:port/bookamrks

Facts about S3B/SSCF/WebappInstallation — Click + to find similar pages.RDF feed
Personal tools

Corrib cluster project is supported by Enterprise Ireland under Grant No. ILP/05/203, Science Foundation Ireland under Grant No. SFI/02/CE1/I131.
Hosted at DERI, NUI Galway.