I was just double checking that it works for me. The query does get logged.
You are using the oxf:xmldb-query processor, right?
-Erik
Matthew J. Graham wrote:
Hi,
I reaplced the XMLDBProcessor classes with the ones you sent and amended
the log4j.xml file but the query string is not being logged. Here is the
contents of the catalina.out file for the query:
2004-10-08 10:39:00,365 INFO org.orbeon.oxf.pipeline.InitUtils -
/query - Received request
2004-10-08 10:39:00,551 INFO org.orbeon.oxf.pipeline.InitUtils -
/query/results - Received request
2004-10-08 10:39:00,644 INFO org.orbeon.oxf.pipeline.InitUtils -
/query/results - Timing: 93 - Cache hits: 164, fault: 0, adds: 0,
success rate: 100%
2004-10-08 10:39:00,650 INFO org.orbeon.oxf.pipeline.InitUtils -
/query - Timing: 285 - Cache hits: 123, fault: 0, adds: 0, success rate:
100%
2004-10-08 10:39:00,721 INFO org.orbeon.oxf.pipeline.InitUtils -
/oxf-theme/carn-layout.cssd - Received request
2004-10-08 10:39:00,767 INFO org.orbeon.oxf.pipeline.InitUtils -
/oxf-theme/carn-layout.cssd - Timing: 46 - Cache hits: 62, fault: 0,
adds: 0, success rate: 100%
Cheers,
Matthew
On Oct 6, 2004, at 1:05 PM, Erik Bruchez wrote:
I wonder what query actually gets sent. I send you by separate email a
version of the XMLDBProcessor with some debug. You should replace
these files in orbeon.jar (after backuping orbeon.jar). Also, add the
following to your log4j.xml:
<category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
<priority value="debug"/>
</category>
With this, the actual query sent to eXist should be sent out to the
configured logger (by default the console). Maybe that will tell us
something.
-Erik
Matthew J. Graham wrote:
Hi,
I am trying to send generic queries to an embedded eXist database.
The user can enter an XQuery into a textarea on the form and then
this is applied to the db contents. The xpl
I am using is the same as the XMLDB Sandbox.
Now this works with simple XPath type queries: //*[local-name() =
'resource']
but when I try a more complicated XQuery:
declare namespace vr = "http://www.ivoa.net/xml/VOResource/v0.10";
for $vr in //vr:resource where contains($vr//vr:description, "NULL")
return $vr
I get nothing; however, I have Java code which sends the query
straight into eXist and this works:
try {
// Get query service
XPathQueryService service = (XPathQueryService)
collection.getService(
"XPathQueryService", "1.0");
// Apply query on collection
ResourceSet resultSet = service.query(queryString);
...
This seems to be exactly the same as the Orbeon code in XMLDBProcessor.
I have tried using a compiled XQuery and changing the eXist jar but
it still does not work so I think it must be something in Orbeon or
one of the included jars.
Any ideas?
Cheers,
Matthew
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user