Any idea how to fix this?
Why do u have to use @jboss tag when you can get this working with
query="SELECT OBJECT(a) FROM SCHEMA_NAME as a"
where SCHEMA_NAME is self explainatory, not you can't use table name.
I thought that @jboss tag is to be used when EJB-QL is not able to provide some sophaticted operations. It is, then you will leave the query in @ejb tag and use @jboss tag with query in it.
I hope this helps.