Hi,
I am using JBoss5.1.0.GA.
I have configured mysql-ds.xml
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/mySqlDbSource</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/mydb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>maheshkumar</user-name>
<password>manish</password>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
while deploying my war file i got an exception like
java.lang.RuntimeException: mapped-name is required for jdbc/mySqlDbSource of deployment struts2_sample.war
See if this helps: