I just found another possible issue:
Your queries are using the table names instead of the entity names.
Change
<ejb-ql>select object(o) from logindetails o</ejb-ql>
to
<ejb-ql>select o from LoginDetails o</ejb-ql>
as you named your entity
<ejb-name>LoginDetails</ejb-name>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219999#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...