title: DriverManager.getConnection returns null
body: <p>I am trying to use a Java class that already worked great for me in the past in order to access MySQL from my JSP project, running Tomcat 6. The problem is, that this line:</p>
  
  <pre class="lang-java prettyprint-override"><code>con = DriverManager.getConnection("jdbc:mysql://localhost:3306/", "root", "password");
  </code></pre>
  
  <p>gives con a value of null.</p>
  
  <p>Now, my question is - what can cause the "getConnection" method return null?</p>
  
  <p><strong>Edit</strong>: I see now that also, I get the infamous ClassNotFoundException: com.mysql.jdbc.Driver.
  I have the connector included in my build path. So why am I getting this error? And, does it have to do with getConnection returning null?</p>