[Attempto] Ace Wiki Installation
Scott Laser
scottlas at yahoo.com
Sat May 16 04:39:08 CEST 2009
Tobias,
Thank you for your quick response! I plugged away at it for about 8 hours today and got closer, but still no joy. No exceptions are thrown in the logs; however, I get an "Invalid/unknown response from the server" when I select "Click here to get test wiki" BTW I switched to the "test" ontology found on the attempto site and adjusted the web.xml accordingly in order to minimize problems (or so I thought).
My efforts included: 1) placing all the jar files for prolog in the Tomcat's root directory(%TOMCAT_HOME%\); 2) placing the jpl.dll file path in the PATH environment variable; 3) building of the acewikiapp with ANT; 4) replacing the jpl.jar file in the WEB-INF\lib folder with the file from SWI Prolog and rebuilding with ANT; 5) downloading the latest version of Prolog and installed it at c:\pl; 6) placing the exported ACE files from the "test" ontology into the tomcat root directory (%TOMCAT_HOME%\data\test\<4files>"
I would appreciate any additional suggestions you may have. Thanks again in advance for your help.
R/
Scott Laser
________________________________
From: Tobias Kuhn <t.kuhn at gmx.ch>
To: Scott Laser <scottlas at yahoo.com>
Cc: "attempto at lists.ifi.uzh.ch" <attempto at lists.ifi.uzh.ch>
Sent: Friday, May 15, 2009 11:22:04 AM
Subject: Re: [Attempto] Ace Wiki Installation
Hi Scott,
If you give your ontology the name "JCOA_Study_Results" then the numbered files exported from the ACE View Protege plugin have to be placed in ".../data/JCOA_Study_Results/" where "..." is the home directory of your web server process.
I hope that this solves the problem. Let me know whether it works out.
Furthermore, you should find the log files "JCOA_Study_Results.log" and "syst.log" in ".../logs/".
Tobias
Scott Laser wrote:
> 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.
>
>
> _______________________________________________
> attempto mailing list
> attempto at lists.ifi.uzh.ch
> https://lists.ifi.uzh.ch/listinfo/attempto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ifi.uzh.ch/pipermail/attempto/attachments/20090515/867031cd/attachment-0001.htm>
More information about the attempto
mailing list