Support > Tutorial (R7) > Using an external database > Obtaining and arranging the JDBC driver
ja | en

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? Wagby ResellerPlease contact us.

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

$(DEVHOME)/customize/tomcat/lib

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 [/ Nested exception is org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: WEB-INF / applicationContext / __ batch.xml: Invocation of init method failed; Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)

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