I have a Spring boot app using SymmetricDS. When I want to start a server, and a clients with h2 databases, both in embedded mode.
I created the config files what are read, but the client throws the following error:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'postgresBulkLoaderFactory' defined in class path resource [symmetric-ext-points.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.jumpmind.symmetric.ext.PostgresBulkDataLoaderFactory]:
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError:
org/springframework/jdbc/support/nativejdbc/NativeJdbcExtractor
When debugging the config is read for sure. The DB is a H2 database, but by debugging it looks like that SymmetricDS can't find the H2 driver, and It goes back to use Postgresql as default.
My gradle looks like this:
compile group: 'org.jumpmind.symmetric', name: 'symmetric-server', version: '3.5.19'
compile group: 'org.jumpmind.symmetric', name: 'symmetric-client', version: '3.5.19'
compile group: 'org.jumpmind.symmetric', name: 'symmetric-core', version: '3.5.19'
Why can't it use the my H2 database? Checking maven repository the core should have the h2 driver but the error is still thrown.