Projects onedev server Issues #926
#926  can't find org.postgresql.Driver on debian bullseye/arm64
Closed
int80h opened 2 weeks ago

I have installed libpostgresql-jdbc-java on Debian Bullseye, ARM 64 arch, and am getting the following error on startup with both java 11 and java 17.

ERROR [WrapperSimpleAppMain] i.onedev.commons.bootstrap.Bootstrap Error booting application java.lang.RuntimeException: java.lang.ClassNotFoundException: org.postgresql.Driver

/usr/share/java contains the following relevant .jar files: postgresql-jdbc3.jar postgresql-42.2.15.jar postgresql-jdbc4.jar postgresql.jar. I have tried with both 7.5.1 and 7.4.29.

Thank you for looking at this.

Robin Shen commented 2 weeks ago

Please copy postgres jdbc jar file into directory <OneDev install dir>/site/lib and restart it to see if it works. Also make sure not to put multiple versions of postgresql jdbc jar into that directory. The one compatible with your database server is expected.

int80h commented 2 weeks ago

That got me to the /init page, thank you!

Robin Shen changed state to 'Closed' 2 weeks ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Seen Builds
Issue Votes (0)
Watchers (3)
Reference
issue onedev/server#926
Please wait...
Page is in error, reload to recover