[Attempto] Ace Wiki Installation
Scott Laser
scottlas at yahoo.com
Fri May 15 17:01:19 CEST 2009
Hi!
I am setting up the Ace Wiki with the following configuration:
Windows XP
Tomcat 5.5
JRE 1.5_16
I placed the numbered files exported from Protege into a subfolder of "webapps/acewiki" called "StudyResults".
My web.xml file looks like:
<web-app>
<!--
This text shows up as the title of the browser window
-->
<display-name>AceWiki Test</display-name>
<!-- Parameters -->
<!--
In order to run AceWiki, SWI Prolog needs to be installed on the server. With this parameter,
you should specify the name (and if necessary the path) of your SWI Prolog executable. However,
it seems that it works also if a wrong name is given. So, I am not sure whether this has any
effect at all.
-->
<context-param>
<param-name>prologcommand</param-name>
<param-value>D:\Program Files\pl\swipl</param-value>
</context-param>
<!--
AceWiki needs the program "ape.exe" that can be compiled from the APE package that is available
on the Attempto download page. This parameter defines the name (should always be "ape.exe") and
the path of the executable. The path can be omitted if the executable is located in the home
directory of the servlet container service.
-->
<context-param>
<param-name>apecommand</param-name>
<param-value>D:\Downloads\attempto\ape.exe</param-value>
</context-param>
<!-- Filters -->
<!--
The Firefox versions 3.0.0 to 3.0.4 have a problem with handling special characters like
umlauts in a correct way. For that reason, the Echo Web Framework server can crash when such
characters are entered on the client. The following filter provides a workaround for this
problem. The problem is fixed in Firefox 3.0.5.
<filter>
<filter-name>headercontrol</filter-name>
<filter-class>ch.uzh.ifi.attempto.echocomp.HeaderControlFilter</filter-class>
<init-param>
<param-name>request.reencoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>headercontrol</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
-->
<!-- Servlets -->
<!--
The following is an exemplary servlet definition for an AceWiki instance.
-->
<servlet>
<!--
The name of the servlet is used as an identifier for the mappings (see below).
-->
<servlet-name>TestWiki</servlet-name>
<!--
This argument points to the servlet class.
-->
<servlet-class>ch.uzh.ifi.attempto.acewiki.AceWikiServlet</servlet-class>
<!--
The parameter 'ontology' is mandatory and specifies the name of the ontology. This name is
used in the URIs of the OWL statements and for the file names on the server. Several servlet
definitions can refer to the same ontology with the consequence that they access the same
knowledge base.
-->
<init-param>
<param-name>ontology</param-name>
<param-value>JCOA_Study_Results</param-value>
</init-param>
<!--
The 'baseuri' parameter defines the base URI for the OWL statements. The URI for the ontology
elements (i.e. words) are a concatenation of baseURI + ontologyName + word.
-->
<init-param>
<param-name>baseuri</param-name>
<param-value>http://localhost:8080/acewiki/</param-value>
</init-param>
<!--
The parameter 'title' defines the title that is shown on the main page of the wiki.
-->
<init-param>
<param-name>title</param-name>
<param-value>StudyResults</param-value>
</init-param>
<!--
The parameter 'description' contains the description that is shown on the main page of the
wiki.
-->
<init-param>
<param-name>description</param-name>
<param-value>This is an AceWiki test.</param-value>
</init-param>
<!--
The 'login' parameter defines whether users have to login before they can use the wiki: 'no'
means no login required; 'nonpw' means that a login is required but without a password; 'pw'
or 'yes' means that a login with password protection is required (not fully implemented at
the moment).
-->
<init-param>
<param-name>login</param-name>
<param-value>no</param-value>
</init-param>
</servlet>
<!--
You can have several servlet definitions within the same web.xml file. Uncomment the code below
to launch a second AceWiki instance. Make sure that you uncomment the respective mapping as
well.
-->
<!--
<servlet>
<servlet-name>AnotherTestWiki</servlet-name>
<servlet-class>ch.uzh.ifi.attempto.acewiki.AceWikiServlet</servlet-class>
<init-param>
<param-name>ontology</param-name>
<param-value>anothertest</param-value>
</init-param>
<init-param>
<param-name>baseuri</param-name>
<param-value>http://attempto.ifi.uzh.ch/acewiki/</param-value>
</init-param>
</servlet>
-->
<!-- Mappings -->
<!--
The mappings connect url-patterns with the servlets that should be shown when the respective
URL is requested by the client. This can also be the root directory "/" of the servlet or a
deeper structure like "/test/app1/".
However, the AceWiki server delay window (that is shown on the client when the server is busy)
looks for the wait icon "../wait.gif". This link gets broken when a different structure is used
unless the picture is copied to the right place. But don't worry too much about this because
the only consequence would be that the wait icon is not shown.
-->
<servlet-mapping>
<servlet-name>TestWiki</servlet-name>
<url-pattern>/StudyResults/</url-pattern>
</servlet-mapping>
<!--
Uncomment the mapping below for starting another AceWiki instance. See the commented-out
servlet definition above.
-->
<!--
<servlet-mapping>
<servlet-name>AnotherTestWiki</servlet-name>
<url-pattern>/anothertest/</url-pattern>
</servlet-mapping>
-->
</web-app>
When running I plug in: http://localhost:8080/acewiki/StudyResults
I get a few dots then the message "Invalid/unknown response from the server: " and the Tomcat shuts itself down with no errors.
Thank you in advance for your help.
More information about the attempto
mailing list