Installing Xindice with your servlet container

Jetty Java HTTP Servlet Server

Jetty is a small, pure-Java, open source HTTP server that supports the 2.2 Servlet spec and JSP 1.1. Jetty can be downloaded from http://www.mortbay.com/jetty.

Xindice WAR file runs nearly straight out of the box when placed underneath Jetty's webapps directory. The one additional step needed is to add an entry for the WAR file to the Jetty server configuration file in order to map the appropriate request paths to the added Xindice web applications (using <code><Call name="addWebApplication">...</code>).

So for example, if you have copied the WAR file that comes with the Xindice binary distrubution into a subdirectory of the <code>%JETTY_HOME%/webapps</code> called <code>%JETTY_HOME%/webapps/Xindice</code> so that you have:

- "%JETTY_HOME%/webapps/Xindice/xindice.war

And you want to run Jetty using the jetty.xml configuration file that comes with Jetty, just add the following block to jetty.xml, anywhere after the Listeners are declared.

<!-- Jetty config for Xindice BEGIN -->

<Call name="addWebApplication">
{{{   <Arg>/Xindice/*</Arg> 
   <Arg><SystemProperty name="jetty.home" default="."/> 
      /webapps/Xindice/xindice.war</Arg> 
   <Arg><SystemProperty name="jetty.home" default="."/> 
      /etc/webdefault.xml</Arg> 
   <Arg type="boolean">true</Arg> <!-- if true, 
      expand war in temp dir --> 

</Call>

<!-- Jetty config for Xindice END -->

XindiceJetty (last edited 2009-09-20 23:32:52 by localhost)