cesards
01/27/2020, 4:39 AM<servlet-class>io.ktor.server.servlet.ServletApplicationEngine</servlet-class>
and I think the Driver used by Cloud PostgreSQL might be different than the one needed? I’m not sure if what I’m saying makes sense but I’m getting crazy trying to make this work.
Has anyone deployed Ktor on Google Cloud that also connects to an external database?
Is it recommended? I guess the other alternative is using h2 and have a local database, but then looking at data I guess it becomes more complicated, doesn’t it?
I’m quite new to the backend world, so any suggestions are more than appreciated.cy
01/27/2020, 9:53 AMcesards
01/27/2020, 12:11 PMCaused by:
java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:postgresql:///xxx
at com.zaxxer.hikari.util.DriverDataSource.<init>(DriverDataSource.java:114)
at com.zaxxer.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:321)
at com.zaxxer.hikari.pool.PoolBase.<init>(PoolBase.java:110)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:108)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
and
java.sql.SQLException: No suitable driver
at java.sql/java.sql.DriverManager.getDriver(DriverManager.java:299)
at com.zaxxer.hikari.util.DriverDataSource.<init>(DriverDataSource.java:106)
at com.zaxxer.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:321)
at com.zaxxer.hikari.pool.PoolBase.<init>(PoolBase.java:110)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:108)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
cesards
01/27/2020, 12:12 PMjfburdet
01/29/2020, 12:55 PM