The error "Named query not found: ProcessInstancesWaitingForEvent" should be resolved on jBPM 5.1. Have you tried this?
The problem was that the file that contains the query definition was not found when deployed on the AS, so registering it directly in the persistence.xml solved this issue.
Kris