title: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
body: <p>I get success when i test it using database wizard.
  But
  I get the following error while i run my jsf/adf application ::</p>
  
  <pre><code>    C:\Users\dev4\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\sqlConnTestApp\ViewController_sqlWebApp.war
  [12:55:18 PM] Wrote Enterprise Application Module to C:\Users\dev4\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\sqlConnTestApp
  [12:55:18 PM] Deploying Application...
  &lt;Jul 10, 2012 12:55:19 PM IST&gt; &lt;Warning&gt; &lt;J2EE&gt; &lt;BEA-160195&gt; &lt;The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application sqlConnTestApp is not versioned.&gt; 
      &lt;Jul 10, 2012 12:55:20 PM IST&gt; &lt;Error&gt; &lt;Deployer&gt; &lt;BEA-149265&gt; &lt;Failure occurred in the execution of deployment request with ID '1341905118356' for task '4'. Error is: 'weblogic.application.ModuleException: '
      weblogic.application.ModuleException: 
          at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
          at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
          at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
          at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
          Truncated. see log file for complete stacktrace
  
      Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
          at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
          at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
          at weblogic.jdbc.common.internal.ConnectionEnvFactory.&lt;init&gt;(ConnectionEnvFactory.java:131)
          at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:686)
          at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:230)
          Truncated. see log file for complete stacktrace
      &gt; 
      &lt;Jul 10, 2012 12:55:20 PM IST&gt; &lt;Warning&gt; &lt;Deployer&gt; &lt;BEA-149004&gt; &lt;Failures were detected while initiating deploy task for application 'sqlConnTestApp'.&gt; 
      &lt;Jul 10, 2012 12:55:20 PM IST&gt; &lt;Warning&gt; &lt;Deployer&gt; &lt;BEA-149078&gt; &lt;Stack trace for message 149004
      weblogic.application.ModuleException: 
          at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
          at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
          at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
          at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
          Truncated. see log file for complete stacktrace
  
      Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
          at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
          at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
          at weblogic.jdbc.common.internal.ConnectionEnvFactory.&lt;init&gt;(ConnectionEnvFactory.java:131)
          at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:686)
          at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:230)
          Truncated. see log file for complete stacktrace
      &gt; 
      [12:55:21 PM] ####  Deployment incomplete.  ####
      [12:55:21 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
      #### Cannot run application sqlConnTestApp due to error deploying to IntegratedWebLogicServer.
      [Application sqlConnTestApp stopped and undeployed from Server Instance IntegratedWebLogicServer]
  </code></pre>
  
  <p>Even i added the jar file in the classpath.I am using sqljdbc4.jar version.</p>