Ah, I found out the problem.
In my entity class, I had a @Roles(...) annotation which gave role names and scopes. I
thought that would be enough to use the object. No! A @Name annotation must be present,
even if the given name is not used.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966645#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...