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.)
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.
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.