S3B/SSCF/WebappInstallation
From Corrib Clan Wiki
Contents |
[edit]
SSCF Webapplication installation guide
[edit]
Prerequirements
[edit]
Wordnet
See: WordNet Installation Notes
[edit]
Tomcat
- Install tomcat 6.0.*
[edit]
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
[edit]
Installation
[edit]
Package
Download and unpack the latest SSCF package
[edit]
Libraries
Copy all libraries from WEB-INF/lib/tomcat into your tomcat/lib directory
[edit]
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



