Thank you for your help it's getting me well going. However I have 2 more
problems:

            1) An XUpdate problem
            2) Running the servlet from another location other than the
default examples location;

1)
Please find attached the source code to the servlet that I coded
(XindiceServlet.java). The servlet is running well up to the point that the
following function is called XUpdateQueryService's update() : See the
function UpdateDocument() - line:
        long count = service.update(xupdate);  /* error from here */
NB The string xupdate is as follows

        String xupdate = "<xu:modifications version=\"1.0\"" +
             "      xmlns:xu=\"http://www.xmldb.org/xupdate\";>" +
             "   <xu:update select=\"/person/[EMAIL PROTECTED] = 'work']\">" +
             "       480-300-3003" +
             "   </xu:update>" +
             "</xu:modifications>";

I am getting the following error message:
      Query Processing error

The items I am trying to update are valid, when I intentionally use wrong
elements it really sees that there are no items to update.

2)
Also I am unable to run our servlets from any other directory except the
examples directory, can you help us configure so that we are able from any
other areas of the system.

I had wanted to create a new application called XindiceServlet. Below is
what I had done.

2.1. Making directory.

XindiceSample/
  -WEB-INF/
    - classes/   Put the class file of serve let.
    - lib/    Put library of Xindice


C:\> cd %CATALINA_HOME%
%CATALINA_HOME%> cd webapps��
%CATALINA_HOME%> mkdir XindiceSample��
%CATALINA_HOME%> cd XindiceSample��
%CATALINA_HOME%> mkdir WEB-INF��
%CATALINA_HOME%> cd WEB-INF��
%CATALINA_HOME%> mkdir classes��
%CATALINA_HOME%> mkdir lib��


2.2. Copy followings to WEB-INF/lib from java/lib

openorb-1.2.0.jar
xalan-2.0.1.jar
xerces-1.4.3.jar
xindice.jar
xmldb.jar


2.3. Setting of class path

C:\> set XINDICE_LIB=%XINDICE_HOME%\java\lib��
C:\> set CLASSPATH=.;%XINDICE_LIB%\xmldb.jar;%
XINDICE_LIB%\xindice.jar;%XINDICE_LIB%\openorb-1.2.0.jar;%XINDICE_LIB%\xerce
s-1.4.3.jar;%XINDICE_LIB%\xalan-2.0.1.jar;%CATALINA_HOME%\common\lib\servlet
.jar

Thanks in advance

Alisemore Dudzai Ndowora








Attachment: XindiceServlet.java
Description: java/

Reply via email to