Support > Tutorial (R7) > Use external database > Obtaining and arranging the JDBC driver

In order to connect with external database "JDBC driver" is necessary.

In order to connect an application built with Wagby to an external database, software called "JDBC driver" is necessary.It comes with the database you use.For the method of obtaining, please read the manual of your database.(In most cases, the JDBC driver will also be copied to the hard disk when installing the database software.)

Do I need assistance setting up the JDBC driver? Please contact Wagby Reseller.

Save the obtained JDBC driver (software) in the following folder.


For example, when using Oracle, the file Wagby - 7.xx/customize/tomcat/lib/ojdbc7.jar must be copied.

In the built-in database (HSQLDB), since the database driver is already installed, it is not necessary to arrange it.Please do this when using external database.

JDBC driver can not be recognized correctly

Even if you do not deploy (copy) the JDBC driver, the build will end.However, when starting the Wagby application, the following error appears in the log (logs/system.log file).

2015-04-01 00:00:00 [ERROR org.springframework.web.context.ContextLoader initWebApplicationContext] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobRepository' defined in ServletContext resource [/WEB-INF/applicationContext/__batch.xml]: Invocation of init method failed; nested exception is Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'

The above is an example of an error that is logged when a corresponding JDBC driver can not be found when using PostgreSQL database.