I\'ve got two questions to ask regarding JBoss 5.1. We are in process of migrating from JBoss 4.2 to JBoss 5.1.
We are also using Java 1.6 and JPA 2.0 with Hibernat
I just got the same problem today, and after trying many alternatives and asking everywhere, the answer is no
You cannot use JPA 2.0 with Jboss 5.1 (even more if you cannot change the server's configuration)
But I've seen hibernate3.X working on Jboss5.1, but never with the annotations features : only the old XML configuration way.
Now, in my point of view, you've got 2 solutions : either asking for server upgrades or changing your data acess system with the old fashion.