Dinesh Nadeera wrote:
<datasources>
<local-tx-datasource>
<jndi-name>mySource</jndi-name>
<use-java-context>false</use-java-context>
You are using use-java-context = false, which means that the datasource will not be bound to the java: namespace.
So in your persistence.xml, change this:
Dinesh Nadeera wrote:
<jta-data-source>java:/mySource</jta-data-source>
to:
<jta-data-source>mySource</jta-data-source>