title: Wildfly 8.0.0 mysql problems with datasource
body: <p>I've got a small problem with my standalone.xml. I made an order mysql in <code>modules/system/layers/base/com</code>.
   Inside this folder there is the folder main and inside that there is my <code>mysql-Connector v.5.1.28</code> and the module.xml.</p>
  
  <p>But when I run a project in Eclipse it doesn't open up the browser.If I open it in the Safari browser than the textfields are shown but the whole database entries, which should be shown up too, are missing. Instead it throws an <code>ClassNotFoundExeption</code> for the mysql driver. Here the snippet of my standalone.xml:</p>
  
  <pre><code>&lt;datasources&gt;
    &lt;datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"&gt;
      &lt;connection-url&gt;jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE&lt;/connection-url&gt;
      &lt;driver&gt;h2&lt;/driver&gt;
      &lt;security&gt;
        &lt;user-name&gt;sa&lt;/user-name&gt;
        &lt;password&gt;sa&lt;/password&gt;
      &lt;/security&gt;
    &lt;/datasource&gt;
    &lt;datasource jta="true" jndi-name="java:jboss/datasources/MyDB" pool-name="MyDB" enabled="true" use-java-context="true" use-ccm="true"&gt;
      &lt;connection-url&gt;jdbc:mysql://localhost:3306/test&lt;/connection-url&gt;
      &lt;driver&gt;mysql&lt;/driver&gt;
      &lt;security&gt;
        &lt;user-name&gt;root&lt;/user-name&gt;
        &lt;password&gt;root&lt;/password&gt;
      &lt;/security&gt;
      &lt;statement&gt;
        &lt;prepared-statement-cache-size&gt;32&lt;/prepared-statement-cache-size&gt;
        &lt;share-prepared-statements&gt;true&lt;/share-prepared-statements&gt;
      &lt;/statement&gt;
    &lt;/datasource&gt;
    &lt;drivers&gt;
      &lt;driver name="mysql" module="com.mysql"&gt;
        &lt;xa-datasource-class&gt;com.mysql.jdbc.jdbc2.optional.MysqlXADataSource&lt;/xa-datasource-class&gt;
      &lt;/driver&gt;
      &lt;driver name="h2" module="com.h2database.h2"&gt;
        &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;
      &lt;/driver&gt;
    &lt;/drivers&gt;
  &lt;/datasources&gt;
  </code></pre>
  
  <p>Can anyone see the problem?</p>
  
  <p>the path is modules/system/layers/base/com/mysql/main...inside is the mysql-connector-java-5.1.28-bin.jar..the module.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;module xmlns="urn:jboss:module:1.1" name="com.mysql"&gt;
  &lt;resources&gt;
  
      &lt;resource-root path="mysql-connector-java-5.1.28-bin.jar"/&gt;
  &lt;/resources&gt;
  &lt;dependencies&gt;
      &lt;module name="javax.api"/&gt;
      &lt;module name="javax.transaction.api"/&gt;
      &lt;module name="javax.servlet.api" optional="true"/&gt;
  &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>