A bug in EclipseLink's Hermes parser is causing deployment error on specific named queries that are JPA 2.0 compatible and worked on 3.1.2. The bug was originally described in
GLASSFISH-19316, and EclipseLink Bug 394033. I reopened the EclipseLink bug, but have no authorizations to reopen Glassfish issue.
To reproduce the issue, try to deploy project attached to original issue