Is that the entire Resource element that you provided?
The error suggests that you have specified a value for the validationQuery attribute, but it's not returning any rows from the DB; when you do specify a validationQuery, you must ensure that it will return at least one row: http://commons.apache.org/dbcp/configuration.html
Alternatively, don't specify or comment out your validationQuery attribute. Here's an example of how this attribute can be used: http://wiki.apache.org/commons/DBCP For instance for Oracle I would use something like "select 1 from dual".
How do they get the deer to cross at the signs? Or to read this tiny ad?