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 CTL <ch...@singnet.com.sg> on 2004/02/08 05:34:36 UTC
Build error.
Hi,
I have the following error when building the addressbook.war. Can anyone help?
Is there an error in XPathQueryResolver.java?
========
src:
[echo] Compiling Source
[javac] Compiling 93 source files to C:\Program Files\Apache Tomcat 4.0\weba
pps\ROOT\xmlxindice\java\classes
[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] ^
[javac] C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\xmlxindice\java\src\
org\apache\xindice\core\query\XPathQueryResolver.java:502: operator - cannot be
applied to java.lang.String,int
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac] ^
[javac] 2 errors
BUILD FAILED
file:C:/Program Files/Apache Tomcat 4.0/webapps/ROOT/xmlxindice/build.xml:123: C
ompile failed; see the compiler error output for details.
==========
Re: Build error.
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Vadim Gritsenko wrote:
> 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] ^
>
See also:
http://wiki.apache.org/xindice/XindiceFAQ/1_2e0/CompileError
Vadim
Re: Build error.
Posted by Vadim Gritsenko <va...@reverycodes.com>.
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
RE: Build error.
Posted by CTL <ch...@singnet.com.sg>.
It seems OpMapVector.class is missing in the xindice package.
Anyone can help?
_____
From: CTL [mailto:chentun@singnet.com.sg]
Sent: Sunday, February 08, 2004 12:35 PM
To: xindice-dev@xml.apache.org
Subject: Build error.
Hi,
I have the following error when building the addressbook.war. Can anyone help?
Is there an error in XPathQueryResolver.java?
========
src:
[echo] Compiling Source
[javac] Compiling 93 source files to C:\Program Files\Apache Tomcat 4.0\weba
pps\ROOT\xmlxindice\java\classes
[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] ^
[javac] C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\xmlxindice\java\src\
org\apache\xindice\core\query\XPathQueryResolver.java:502: operator - cannot be
applied to java.lang.String,int
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac] ^
[javac] 2 errors
BUILD FAILED
<file:C:/Program> file:C:/Program Files/Apache Tomcat
4.0/webapps/ROOT/xmlxindice/build.xml:123: C
ompile failed; see the compiler error output for details.
==========