title: ClassNotFoundException org.h2.Driver in Wildfly
body: <p>I am trying to deploy and run my ear file in wildfly. when I try to access following code it gives ClassNotFoundException for org.h2.Driver. </p>
  
  <pre><code>String jdbcURL = "jdbc:h2:file;MODE=Derby;auto_server=true";            Class.forName("org.h2.Driver");
  Connection = DriverManager.getConnection(jdbcURL, username", "password");
  </code></pre>
  
  <p>My module.xml </p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.1" name="com.h2database.h2"&gt;
  
      &lt;resources&gt;
          &lt;resource-root path="h2.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>
  
  <p>is any I need to Change?</p>