title: Unable to instantiate driver class "com.microsoft.sqlserver.jdbc.SQLServerDataSource" - Failure deploying sqljdbc4.jar in Wildfly 10
body: <p>I have big issues using sqljdbc4.jar in Wildfly 10. 
  When I start the server I get the following issue: </p>
  
  <pre><code>Unable to instantiate driver class "com.microsoft.sqlserver.jdbc.SQLServerDataSource" 
  </code></pre>
  
  <p>... and several exceptions ...</p>
  
  <pre><code>08:32:12,570 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."PPJAS.ear"."WebService.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."PPJAS.ear"."WebService.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "WebService.war" of deployment "PPJAS.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
  </code></pre>
  
  <p>What I did till now:</p>
  
  <p>Creating a Folder for the .jar with the .jar itsself and the module.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- JDBC Drivers module.xml file to configure your JDBC drivers--&gt;
  
  &lt;!-- SQL Server 2008 example --&gt;
  &lt;module xmlns="urn:jboss:module:1.3" name="com.microsoft.sqlserver"&gt;
    &lt;resources&gt;
      &lt;resource-root path="sqljdbc4.jar"/&gt;
    &lt;/resources&gt;
    &lt;dependencies&gt;
      &lt;module name="javax.api"/&gt;
      &lt;module name="javax.transaction.api"/&gt;
    &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>.. at C:\Program Files\Wildfly\wildfly-10.0.0.Final\modules\com\microsoft\sqlserver\main</p>
  
  <p>Added the datasource and the driver in the standalone.xml</p>
  
  <pre><code>&lt;datasource jndi-name="java:jboss/datasources/DBName" pool-name="DBPoolName"&gt;
                      &lt;connection-url&gt;jdbc:microsoft:sqlserver://IP:Port;DatabaseName=DBName&lt;/connection-url&gt;
                      &lt;driver-class&gt;com.microsoft.sqlserver.jdbc.SQLServerDataSource&lt;/driver-class&gt;
                      &lt;driver&gt;sqlserver&lt;/driver&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;username&lt;/user-name&gt;
                          &lt;password&gt;password&lt;/password&gt;
                      &lt;/security&gt;
                      &lt;validation&gt;
                          &lt;valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker"/&gt;
                      &lt;/validation&gt;
                  &lt;/datasource&gt;
  
  &lt;driver name="sqlserver" module="com.microsoft.sqlserver"&gt;
                          &lt;driver-class&gt;com.microsoft.sqlserver.jdbc.SQLServerDataSource&lt;/driver-class&gt;
                      &lt;/driver&gt;
  </code></pre>
  
  <p>I (might??) did the same procedure with the MySQL Driver without any problems. 
  I also tried to add the datasource via the web interface wildfly management but the system also cannot find the specific driver.</p>
  
  <p>Does anyone have any ideas?</p>
  
  <p>Thanks for your time!</p>