title: org.jooq.exception.DetachedException: Cannot execute query. No Connection configured when deploy to standalone Tomcat
body: <p>When I run the app from IntelliJ IDEA all works fine, but when I deploy EXACTLY THE SAME war-file to standalone Tomcat I get the following exception:</p>
  
  <p>org.jooq.exception.DetachedException: Cannot execute query. No Connection configured</p>
  
  <p>It is quite odd because it looks like jOOQ simple cannot connect to DB, but from IDE all works fine.</p>
  
  <p>I tried to change DB url in different ways but no success.</p>
  
  <p>Please advice where to look to prevent the error: tomcat, jooq or something else?</p>
  
  <p>Versions are: Java 8, Tomcat 8.08, jOOQ 3.3.2</p>
  
  <p><strong>UPD:</strong> Got the solution: Since I do all the 'connection' stuff (creating, opening, closing etc) by hand It is required to load JDBC driver by hand as well: <code>Class.forName("org.postgresql.Driver");</code></p>
  
  <p>It is very odd, but running from IntelliJ IDEA loads the driver 'behind the scenes' - that was the main issue.</p>