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



Reply via email to