I got the same problem some weeks ago but I have fixed it.
You can avoid the class cast exception just by removing the persistence-api.jar from the
ear/war.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129538#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...