S3B/SSCF/WebappInstallation
From Corrib Clan Wiki
Contents |
SSCF Webapplication installation guide
Prerequirements
Wordnet
See: WordNet Installation Notes
Tomcat
- Install tomcat 6.0.*
Sesame 1.2.7
- Download Sesame 1.2.7, 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'> <!-- you can specify your own path here --> <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_webapp package.
- Latest stable relese: Download
- Most recent version is available on SVN https://s3b.svn.sourceforge.net/svnroot/s3b/trunk/webapp
Libraries
Copy all libraries from WEB-INF/lib/tomcat into your tomcat/lib directory
optional - XSB
If you want to use recommendation engine in SSCF XSB prolog is needed.
Instructions on XSB installation can be found here: XSB install guide
After successful installation, edit the sscf/WEB-INF/jeromedl.properties. Find the
jeromedl.sscftrust.prologpath
property and change it to reflect the XSB installation 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



