title: java.sql.SQLException: No suitable driver found jdbc:oracle:thin
body: <p>I am trying to deploy a spring based web application in my local tomcat server. Below are my application details:</p>
  
  <ul>
  <li>Spring based web application (war)</li>
  <li>Tomcat 6 server</li>
  <li>Java 1.6</li>
  <li>Oracle DB</li>
  <li><p>Below are by jdbc configuration:</p>
  
  <p>Configuration for tomcat settings only.
  <code>javax.persistence.jdbc.drive=oracle.jdbc.OracleDriver</code>       <code>javax.persistence.jdbc.url=jdbc:oracle:thin:@coursesdev.cvbaybp20ew7.eu-west-1.rds.amazonaws.com:1521:DEVCRS</code>
  <code>javax.persistence.jdbc.user=test</code>
  <code>javax.persistence.jdbc.password=test</code></p></li>
  <li><p>I have also added ojdbc6.jar,ojdbc14.jar in my /lib folder</p></li>
  </ul>
  
  <p>I deployed my war file without any issues. But when my application tries to connect to db it throws the error:"<strong>java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@coursesdev.cvbaybp20ew7.eu-west</strong>"</p>
  
  <pre><code>Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v20111018-r10243):  org.eclipse.persistence.exceptions.DatabaseException
  Internal Exception: java.sql.SQLException: No suitable driver found for  jdbc:oracle:thin:@coursesdev.cvbaybp20ew7.eu-west-1.rds.amazonaws.com:1521:DEVCRS
  Error Code: 0
      at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)
      at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:445)
     at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:366)
      ... 81 more
  Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DatabaseException
  Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@coursesdev.cvbaybp20ew7.eu-west-1.rds.amazonaws.com:1521:DEVCRS
  Error Code: 0
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
      at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:319)
      at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:109)
      at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
      at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330)
      at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293)
      at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418)
      at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216)
      at org.eclipse.persistence.sessions.server.ConnectionPool.startUp(ConnectionPool.java:504)
      at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484)
      at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633)
      at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208)
      at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)
      ... 87 more
  Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@coursesdev.cvbaybp20ew7.eu-west-1.rds.amazonaws.com:1521:DEVCRS
      at java.sql.DriverManager.getConnection(DriverManager.java:602)
      at java.sql.DriverManager.getConnection(DriverManager.java:154)
      at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
      ... 97 more
  </code></pre>
  
  <p>I have seen a lot of post with the similar issue but am not sure what i am missing though. </p>