try using just "eCMDataSource" in your persistence.xml instead of prefixing with java:/
I tried with "eCMDataSource" but it was not working...
Is there any configuration changes I have to make in JBOSS????
when you get the NameNotFoundException what name does it give? are you doing a JNDI lookup?
now I solved this error, previsoulsy I was using javaee.jar for compiling but when i used jboss specific jar then it's working fine.