Hi all,
I'm trying to run the XQueryXPath sample bundled with xmlbeans-2.2.0.
I've compiled the sample and updated the
xmlbeans-2.2.0\samples\XQueryXPath\build\lib folder with the below
entries:
12.06.2006 11:45 23'630 jsr173_1.0_api.jar
12.06.2006 11:45 60'047 resolver.jar
28.02.2007 16:43 40'109 schemas.jar
12.06.2006 11:45 2'664'574 xbean.jar
12.06.2006 11:45 5'578 xbean_xpath.jar
12.06.2006 11:45 429'483 xmlpublic.jar
12.02.2007 11:30 3'728'517 saxon8.jar
I took the first 6 jars from xmlbeans-2.2.0\lib and the last
(saxon8.jar) from saxonsa8-9j distribution.
I've added the last one because I've found that it is mandatory in order
"to find the xquery engine".
But when I try to run the sample I got the "No query engine found"
error:
C:\software\xmlbeans-2.2.0\samples\XQueryXPath>ant run
Buildfile: build.xml
init:
[echo] xmlbeans.home: C:\software\xmlbeans-2.2.0
[echo] xmlbeans.lib: C:\software\xmlbeans-2.2.0/lib
schemas.check:
schemas.jar:
XQueryXPath.classes:
build:
run:
[echo] ============================== running XQueryXPath
[java] Running ExecQuery.selectEmpsByStateCursor
[java] java.lang.RuntimeException: No query engine found
[java] at
org.apache.xmlbeans.impl.store.Query.getCompiledQuery(Query.java:120)
[java] at
org.apache.xmlbeans.impl.store.Query.getCompiledQuery(Query.java:53)
[java] at
org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:48)
[java] at
org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
[java] at
org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
[java] at
org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
[java] at
org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.j
ava:74)
[java] at
org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPat
h.java:75)
[java] at
org.apache.xmlbeans.samples.xquery.XQueryXPath.main(XQueryXPath.java:54)
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds
The saxon8.jar is also present in xmlbeans.lib.
Could you please help me in order to understand what is still missing ?
Thanks
Regards
Patrizio
IMPORTANT:
This e-mail transmission is intended for the named addressee(s)
only.
Its contents are private, confidential and protected from
disclosure
and should not be read, copied or disclosed by any other
person.
If you are not the intended recipient, we kindly ask you to
notify the
sender immediately by telephone (+41 (0)58 806 50 00), to
redirect the
message to the account "[EMAIL PROTECTED]" and to delete this e-
mail.
E-mail transmissions may be intercepted, altered or read by
unauthorized persons and may contain viruses. Therefore, it is
recommended that you use regular mail or courier services for
any
information intended to be confidential. However, by sending us
messages through e-mail, you authorize and instruct us to
correspond by
e-mail in the relevant matter.
Thank you.