title: I'm getting java.lang.ExceptionInInitializerError when I connect to JDBC
body: <p>I'm running a server using Tomcat 7.0 in Eclipse.
  I have a html file to link to a Servlet file, which has a form to input the value.
  When I input any value in the html file, it forwards to the servlet file, and the servlet file has some codes to connect JDBC.
  The code is quite simple.</p>
  
  <pre><code>data = request.getPrameter("name");
  Connection conn = DriverManager.getConnection(url, username, password);
  </code></pre>
  
  <p>I've imported everything to be used.
  Also, in the tomcat server, I added permission in catalina.policy</p>
  
  <pre><code>grant{
      permission java.net.SocketPermission "*:1-65535", "connect,resolve";
  };
  </code></pre>
  
  <p>I'm not sure why I'm getting this error.
  I'm happy to give you more information if needed!
  Please help me :)</p>