I have a spring-boot app (v2.3.5.RELEASE), using jaybird 3.0.10 on firebird 2.5.9.27139
On application.properties I configured:
spring.datasource.url=jdbc:firebirdsql://localhost:3050//mypath/dbsupport.fdb?encoding=ISO8859_1
spring.datasource.username=SYSDBA
spring.datasource.password=mypassword
Here's build.gradle
plugins {
id 'org.springframework.boot' version '2.3.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.supportapp'
version = '1.0'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.webjars:font-awesome:5.15.1'
implementation 'org.webjars:webjars-locator:0.40'
implementation 'org.webjars:jquery:3.5.1'
implementation 'org.webjars:bootstrap:4.5.3'
implementation 'org.webjars:popper.js:2.5.2'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
runtimeOnly 'org.firebirdsql.jdbc:jaybird:3.0.10'
runtimeOnly "org.springframework.boot:spring-boot-devtools"
Project worked fine, so far...
After a couple of weeks I opened the project, and when I run the app, I get the title of this post followed by:
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Description error on the log is :
2021-02-13 19:36:35.937 WARN 20629 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inMemoryDatabaseShutdownExecutor' defined in class path resource [org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfiguration.class]: Unsatisfied dependency expressed through method 'inMemoryDatabaseShutdownExecutor' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
I tried using version 4 of jaybird but still stuck on this .
Howto ???
Regards
Pablo