title: This driver is not configured for integrated authentication
body: <p>Trying to connect my java web application with MS-SQL server using <code>sqljdbc41</code> for <code>jdk 1.8</code>. Here is the database connection code-</p>
  
  <pre><code>    Connection connection;
      String url = "jdbc:sqlserver://localhost:1433;databaseName=Lista;integratedSecurity=true";
      Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
      connection = DriverManager.getConnection(url);
  </code></pre>
  
  <p>when i am trying to insert some values to the database like-</p>
  
  <pre><code>    PreparedStatement ps = connection.prepareStatement("INSERT INTO user_informations VALUES(?,?,?)");
  
      ps.setString(1, "value");
      ps.setString(2, "value");
      ps.setString(3, "value");
  
      ps.executeUpdate();
  </code></pre>
  
  <p>getting the following error each time-</p>
  
  <blockquote>
    <p>com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not
    configured for integrated authentication</p>
  </blockquote>
  
  <p>Here are some informations about what i have tried yet-</p>
  
  <ul>
  <li>i have added the path of <code>sqljdbc41</code> in the path variable.</li>
  <li>i have added the path of <code>sqljdbc_auth.dll</code> in the path variable.</li>
  <li>i have added the <code>sqljdbc41.jar</code> into my <code>Nebeans</code> project library.</li>
  <li>i have added the <code>sqljdbc_auth.dll</code> into both bin folder under <code>jdk</code> and <code>jre</code>.</li>
  <li>my <code>jdk</code> is <code>64 bit</code> under program files folder not in program file(x86).</li>
  <li>jdbc driver folder is also in program file directory.</li>
  <li>sql server and sql server browser services are also running.</li>
  </ul>
  
  <p><strong>Edit</strong></p>
  
  <p>Now i experiencing a new thing-after restarting my pc when i deploy the project for the first time then it is working perfectly but when i make any change in my code and re-run the project it's not working!</p>