JSP Wiki

Installing and configuring JSP Wiki

The glassfish-javaee package is required to get the jstl.jar and standard.jar files. The tomcat6-examples used to include them but not anymore… This may change as the examples package is broken without them

sudo apt-get install -y jspwiki glassfish-javaee libjabsorb-java

Setup the libraries

cd /usr/share/jspwiki/WEB-INF/lib
sudo mv standard.jar standard.old
sudo ln -s ../../../java/glassfish-javaee.jar standard.jar
sudo mv jstl.jar jstl.old
sudo ln -s ../../../java/glassfish-javaee.jar jstl.jar

Edit the configuration of the wiki file locations

sudo vi /etc/jspwiki/jspwiki.properties
jspwiki.fileSystemProvider.pageDir = /mnt/apps/jspwiki/files
jspwiki.workDir = /mnt/apps/jspwiki/working
jspwiki.basicAttachmentProvider.storageDir = /mnt/apps/jspwiki/attachments
log4j.appender.FileLog.File = /mnt/apps/jspwiki/logs/jspwiki.log

Edit the Context path

sudo vi /etc/jspwiki/jspwiki.xml
<Context path="/jspwiki" docBase="/usr/share/jspwiki" allowLinking="true">
<Resources className="org.apache.naming.resources.FileDirContext"

Update the user and group databases

sudo vi /etc/jspwiki/jspwiki.properties
jspwiki.xmlGroupDatabaseFile = /mnt/apps/jspwiki/etc/groupdatabase.xml
jspwiki.xmlUserDatabaseFile = /mnt/apps/jspwiki/etc/userdatabase.xml

Add JSP Wiki to tomcat

cd /etc/tomcat6/Catalina/localhost
sudo ln -s ../../../jspwiki/jspwiki.xml