CTL wrote:
I have the following error when building the addressbook.war. Can anyone help? Is there an error in XPathQueryResolver.java?
========
[javac] C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\xmlxindice\java\src\
org\apache\xindice\core\query\XPathQueryResolver.java:502: array required, but o
rg.apache.xpath.compiler.OpMapVector found
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac] ^
I'm not sure what Xindice version you are trying to compile, but AFAIU all 1.1 Xindice versions do not have such line. See:
http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/src/org/apache/xindice/core/query/XPathQueryResolver.java?annotate=1.25
So I'll sassume that you are using 1.0. In this case, you have to use versions of Xerces and Xalan libraries which were shipped with Xindice 1.0, but not newer libraries. Usually this is done by providing -Djava.endorsed.dirs parameter to the Java.
Vadim
