maven pom.xml
It seems you are using JBoss AS7. Check instructions here: https://community.jboss.org/wiki/DataSourceConfigurationInAS7
Basically, you should
Class.forName() is an idiom commonly used when data sources are not provided by the container. In modern Java EE servers, they are provided.