title: SQLServerException: This driver is not configured for integrated authentication
body: <p>I am building a GWT application that queries SQL Server. While working in Eclipse everything is fine and dandy, but when I try to deploy a .war file and stick it into a JBoss deployments directory, I get this error:</p>
  
  <blockquote>
    <p>Failed to load the sqljdbc_auth.dll cause : Native Library
    JBossServerPath\bin\sqljdbc_auth.dll already loaded in another
    classloader com.microsoft.sqlserver.jdbc.SQLServerException: This
    driver is not configured for integrated authentication.
    ClientConnectionId:450886fa-8bde-4f52-b213-7af1f4948913</p>
  </blockquote>
  
  <p>If I remove the sqljdbc4.jar from my project directory and have the sqljdbc_auth.dll in the JBossPath\bin directory as suggested <a href="https://stackoverflow.com/a/10645025/5031373">here</a>, I get the following error.</p>
  
  <blockquote>
    <p>java.sql.SQLException: No suitable driver found for
    jdbc:sqlserver://localhost:1433;databaseName=DataBase;integratedSecurity=true;</p>
  </blockquote>
  
  <p>Also, I can't find the lib directory referenced in the above answer.</p>
  
  <p>I have the sqljdbc4.jar in my project's WEB-INF\lib directory and I'm building the project with ant.</p>
  
  <p>I tried asking <a href="https://stackoverflow.com/q/31032103/5031373">this question</a> earlier, but it got marked as a duplicate of <a href="https://stackoverflow.com/q/10637585/5031373">this question</a>, which did not solve my problem.</p>