[Attempto] Ace Wiki Installation

Tobias Kuhn t.kuhn at gmx.ch
Sat May 16 10:42:20 CEST 2009


Scott,

At the moment, I have no idea what could be the problem. Let's try to localize the source of the 
problem. Are the log files "syst.log" and "test.log" generated? If yes, what is the content?


Tobias



Scott Laser wrote:
> 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 
> &quot;webapps/acewiki&quot; called &quot;StudyResults&quot;.
>  >
>  > My web.xml file looks like:
>  >
>  >
>  > &lt;web-app&gt;
>  >    &lt;!--
>  >    This text shows up as the title of the browser window
>  >  --&gt;
>  >  &lt;display-name&gt;AceWiki Test&lt;/display-name&gt;
>  >      &lt;!-- Parameters --&gt;
>  >    &lt;!--
>  >    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.
>  >  --&gt;
>  >  &lt;context-param&gt;
>  >    &lt;param-name&gt;prologcommand&lt;/param-name&gt;
>  >    &lt;param-value&gt;D:\Program Files\pl\swipl&lt;/param-value&gt;
>  >  &lt;/context-param&gt;
>  >    &lt;!--
>  >    AceWiki needs the program &quot;ape.exe&quot; that can be compiled 
> from the APE package that is available
>  >    on the Attempto download page. This parameter defines the name 
> (should always be &quot;ape.exe&quot;) 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.
>  >  --&gt;
>  >  &lt;context-param&gt;
>  >    &lt;param-name&gt;apecommand&lt;/param-name&gt;
>  >    &lt;param-value&gt;D:\Downloads\attempto\ape.exe&lt;/param-value&gt;
>  >  &lt;/context-param&gt;
>  >      &lt;!-- Filters --&gt;
>  >    &lt;!--
>  >    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.
>  >    &lt;filter&gt;
>  >    &lt;filter-name&gt;headercontrol&lt;/filter-name&gt;
>  >    
> &lt;filter-class&gt;ch.uzh.ifi.attempto.echocomp.HeaderControlFilter&lt;/filter-class&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;request.reencoding&lt;/param-name&gt;
>  >      &lt;param-value&gt;UTF-8&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >  &lt;/filter&gt;
>  >  &lt;filter-mapping&gt;
>  >    &lt;filter-name&gt;headercontrol&lt;/filter-name&gt;
>  >    &lt;url-pattern&gt;*&lt;/url-pattern&gt;
>  >  &lt;/filter-mapping&gt;
>  >  --&gt;
>  >    &lt;!-- Servlets --&gt;
>  >    &lt;!--
>  >    The following is an exemplary servlet definition for an AceWiki 
> instance.
>  >  --&gt;
>  >  &lt;servlet&gt;
>  >      &lt;!--
>  >      The name of the servlet is used as an identifier for the 
> mappings (see below).
>  >    --&gt;
>  >    &lt;servlet-name&gt;TestWiki&lt;/servlet-name&gt;
>  >        &lt;!--
>  >      This argument points to the servlet class.
>  >    --&gt;
>  >    
> &lt;servlet-class&gt;ch.uzh.ifi.attempto.acewiki.AceWikiServlet&lt;/servlet-class&gt;
>  >        &lt;!--
>  >      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.
>  >    --&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;ontology&lt;/param-name&gt;
>  >      &lt;param-value&gt;JCOA_Study_Results&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >        &lt;!--
>  >      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.
>  >    --&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;baseuri&lt;/param-name&gt;
>  >      &lt;param-value&gt;http://localhost:8080/acewiki/</param-value>
>  >    &lt;/init-param&gt;
>  >        &lt;!--
>  >      The parameter 'title' defines the title that is shown on the 
> main page of the wiki.
>  >    --&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;title&lt;/param-name&gt;
>  >      &lt;param-value&gt;StudyResults&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >        &lt;!--
>  >      The parameter 'description' contains the description that is 
> shown on the main page of the
>  >      wiki.
>  >    --&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;description&lt;/param-name&gt;
>  >      &lt;param-value&gt;This is an AceWiki test.&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >        &lt;!--
>  >      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).
>  >    --&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;login&lt;/param-name&gt;
>  >      &lt;param-value&gt;no&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >  &lt;/servlet&gt;
>  >    &lt;!--
>  >    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.
>  >  --&gt;
>  >  &lt;!--
>  >  &lt;servlet&gt;
>  >    &lt;servlet-name&gt;AnotherTestWiki&lt;/servlet-name&gt;
>  >    
> &lt;servlet-class&gt;ch.uzh.ifi.attempto.acewiki.AceWikiServlet&lt;/servlet-class&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;ontology&lt;/param-name&gt;
>  >      &lt;param-value&gt;anothertest&lt;/param-value&gt;
>  >    &lt;/init-param&gt;
>  >    &lt;init-param&gt;
>  >      &lt;param-name&gt;baseuri&lt;/param-name&gt;
>  >      &lt;param-value&gt;http://attempto.ifi.uzh.ch/acewiki/</param-value>
>  >    &lt;/init-param&gt;
>  >  &lt;/servlet&gt;
>  >  --&gt;
>  >      &lt;!-- Mappings --&gt;
>  >    &lt;!--
>  >    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 &quot;/&quot; of the servlet or a
>  >    deeper structure like &quot;/test/app1/&quot;.
>  >        However, the AceWiki server delay window (that is shown on the 
> client when the server is busy)
>  >    looks for the wait icon &quot;../wait.gif&quot;. 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.
>  >  --&gt;
>  >  &lt;servlet-mapping&gt;
>  >    &lt;servlet-name&gt;TestWiki&lt;/servlet-name&gt;
>  >    &lt;url-pattern&gt;/StudyResults/&lt;/url-pattern&gt;
>  >  &lt;/servlet-mapping&gt;
>  >    &lt;!--
>  >    Uncomment the mapping below for starting another AceWiki instance. 
> See the commented-out
>  >    servlet definition above.
>  >  --&gt;
>  >  &lt;!--
>  >  &lt;servlet-mapping&gt;
>  >    &lt;servlet-name&gt;AnotherTestWiki&lt;/servlet-name&gt;
>  >    &lt;url-pattern&gt;/anothertest/&lt;/url-pattern&gt;
>  >  &lt;/servlet-mapping&gt;
>  >  --&gt;
>  >  &lt;/web-app&gt;
>  >
>  > When running I plug in: http://localhost:8080/acewiki/StudyResults
>  >
>  > I get a few dots then the message &quot;Invalid/unknown response from 
> the server: &quot;  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 <mailto:attempto at lists.ifi.uzh.ch>
>  > https://lists.ifi.uzh.ch/listinfo/attempto
>  >
> 


More information about the attempto mailing list