title: No suitable driver found for jdbc:db2 with db2jcc4.jar present in web-inf\lib
body: <p>I am trying to run a simple java web app that connects to a back end DB2 database(IBM dashdb) to get retrieve some data. </p>
  
  <p>I am getting a weird error message when I try to run this application on a ubuntu hosted tomcat 8.5. 
  I managed to get this application running on a tomcat v8 hosted on Windows. </p>
  
  <p>The actual error message is: </p>
  
  <blockquote>
    <p>No suitable driver found for jdbc:db2://yp-dashdb......</p>
  </blockquote>
  
  <p>I don't really understand why this is happening because I have the db2jcc4. in my web-inf\lib folder.
  <a href="https://i.stack.imgur.com/hOuvo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hOuvo.png" alt="enter image description here"></a></p>
  
  <p>I thought it was something wrong with the library so I created a separate Java app to simply connect and retrieve some data from the database. That one works just fine with the same library.</p>
  
  <p>This is the code used to set up the connection (I trimmed out some of the details). </p>
  
  <pre><code>private Connection conn = null;   
  conn= DriverManager.getConnection("jdbc:db2://yp-dashdb...");
  </code></pre>
  
  <p>Keep in mind, that this exact same code works in a Standard Java app so the connection details work and there's no typo in the connection info. </p>
  
  <p>Is there something obvious that I'm overlooking here? </p>