title: Where to place the sqljdbc.jar
body: <p>I'm developing this Java app, everything works fine in eclipse
  but this program will not run with Apache Tomcat 7.0 because it cannot find the sqlserver driver.</p>
  
  <p>This app is suppose to connect to a sqlserver 2005 database, but it will not get past the <code>Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver")</code>, on the server side.</p>
  
  <p>I know it's that line because I found:</p>
  
  <pre><code>java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
  </code></pre>
  
  <p>in my log file. I placed the <code>sqljdbc.jar</code> in every <code>catalinaHome/lib</code>, <code>catalinaHome/shared/lib</code>, and <code>web-inf/lib</code>.</p>
  
  <p>I also edited the <code>catalina.properties</code> so it reads from the <code>shared/lib</code> folder.</p>
  
  <p>I'm out of ideas, any help will be awesome!</p>
  
  <h3>UPDATE #1 - problem solved</h3>
  
  <p>I manually included the .class files into the war file and now it works.</p>