Please try using the setParameter(s) instead. see if the query works then. It probably doesnt see the params at all. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113274#4113274 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113274