I get compilation error when compiling Xindice 1.0. What should I do?

If you get compilation error like:

    [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]                                            ^

It means that you are using newer Xerces/Xalan versions than the ones shipped with Xindice 1.0.

If you are compiling with JDK1.4, this can be fixed by providing parameter:

    java -Djava.endorsed.dirs=endorsed

Where, endorsed directory should have Xerces, Xalan, xml-apis JAR files which are part of Xindice 1.0

  • No labels