Table of Contents
Driver location
JDBC drivers are jars. Vibecat looks for them in the following places:
| Location | Purpose |
|---|---|
lib folder of the Vibecat home | The drivers every data source can use. Delivered: Microsoft SQL Server (mssql-jdbc), PostgreSQL (postgresql), Oracle (ojdbc11), MariaDB (mariadb-java-client 4.0.0) and Firebird (Jaybird, jaybird 6.0.7), plus the libraries of the plug-ins (Apache POI, BouncyCastle, zip4j, Tomcat DBCP). |
libraries in vibecat.json | Extra folders or jars on the class path of every web application (for example a driver the product ships itself). A profile such as the ELO IndexServer profile keeps its JDBC driver here. |
plugins folder | Jars of plug-ins; they see the classes of Vibecat and of lib. |
Adding a driver
- Copy the driver jar into the
libfolder of Vibecat (for the Windows service: thelibfolder below the installation folder). - Restart Vibecat - jars are read when the JVM starts.
- Open Configuration > Data sources > New data source. The dialog JDBC drivers on the lib path lists every driver found in
libwith its driver class and URL template; pick one and the JDBC connection string assistant builds the URL from host, port and database name.
Which driver class and URL
| Database | Driver class | URL template |
|---|---|---|
| SQL Server | com.microsoft.sqlserver.jdbc.SQLServerDriver | jdbc:sqlserver://host:1433;databaseName=db;encrypt=true;trustServerCertificate=true |
| PostgreSQL | org.postgresql.Driver | jdbc:postgresql://host:5432/db |
| Oracle | oracle.jdbc.OracleDriver | jdbc:oracle:thin:@//host:1521/service |
| MariaDB / MySQL | org.mariadb.jdbc.Driver | jdbc:mariadb://host:3306/db |
| Firebird | org.firebirdsql.jdbc.FBDriver | jdbc:firebird://host:3050/db (validation query SELECT 1 FROM RDB$DATABASE) |
The Docker image keeps drivers in the lib volume (see the docker folder). Never put a password in the URL: use the user name and password fields of the definition - the global documentation masks credentials, but your backups and logs would still contain them.