I ran into this same problem and found a work-around. I had this query:
SELECT object(c) FROM content c
WHERE c.pageTitle = ?1
ORDER BY c.orderInPage ASC
and got the same deployment error
Was expecting one of: "IN" ... ABSTRACT_SCHEMA> ...
I changed the word "content" to "Content" and the exception went away! I simply made the first letter uppercase. There must be a silly parsing bug in JBossQL.
I'm on JBoss 3.2.0. I looked at the bug report at:
but it didn't make much sense to me. Something was fixed in 3.2.3 but I'm not convinced it was this bug and I haven't tried upgrading.
Is 'account' a correct abstract schema name for your entity (case-sensitive) ?