the way it got fixed was
in my
jboss-web.xml i changed
to : -->
<resource-ref>
<res-ref-name>jdbc/ds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jboss/ds/myAppDS</jndi-name>
From : ---->
<resource-ref>
<res-ref-name>jdbc/ds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/ds/myAppDS</jndi-name>
</resource-ref>
in standalone-full-ha.xml
i had data source declaratioin like this
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/myAppDS" pool-name="myAppDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
</resource-ref>