You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Jeffrey Hau <jh...@doc.ic.ac.uk> on 2003/01/16 18:48:52 UTC

Addressbook example - bugs and fixes

Hi,
i just downloaded and build xindice from cvs and found 2 bug with the 
addressbook example running in tomcat.

1) the addressbook web.xml line 18 contains

     <servlet-mapping>
         <servlet-name>Task</servlet-name>
         <url-pattern>/Task</url-pattern>
     </servlet-mapping>

but the main jsp refers to servlet/Task.

Solution: change the above to:

     <servlet-mapping>
         <servlet-name>Task</servlet-name>
         <url-pattern>/servlet/Task</url-pattern>
     </servlet-mapping>

2)when building the addressbook.war from ant using 
$XINDICE_HOME/java/examplesbuild.xml, xindice-1.1b.jar is not included 
in the war file's WEB-INF dir. This leads to ClassNotFoundException when 
trying to instantiate the org.apache.xindice.client.DatabaseImpl

solution: simply copy the requird jar from $XINDICE_HOME/dist to 
WEB-INF/lib or change the build.xml

hope this helps.


Jeff