Might be a different problem.
Please post your JBoss version and attach your persistence.xml of your EAR file.
Also your datasource *-ds.xml
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community