JPA project classpath for JDBC driver dependencies [message #1851840] |
Tue, 19 April 2022 14:56 |
Jeremy Jackson Messages: 1 Registered: April 2022 |
Junior Member |
|
|
I was only able to find a few references to classpath for plugins and their JDBC drivers, from 2011 on Google.
I am not sure if this is the right area, or what component or bundle of Eclipse manages the JDBC Drvers for a JPA Project
I have tried:
-adding the jars along with postgresqll-jdbc.jar in JDBC Driver Configuration of JPA Project Datasources
- adding the junixsocket dependencies to the Eclipse JVM commandline via -cp,
-adding the .jars to an Eclipse plug-in project, and instaling into eclipse
The configuration with junixsocket + postgresql works on Wildfly 26.
--connection-properties
ssl=disable
socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory\$FactoryArg
socketFactoryArg=/run/postgresql/.s.PGSQL.5432
On eclipse, I get a ClassNotFound exception, where postgresql.jar is looking for classes provided by junixsocket, for example wiith "Test Connection":
org.postgresql.util.PSQLException: The SocketFactory class provided org.newsclub.net.unix.AFUNIXSocketFactory\$FactoryArg could not be instantiated.
Caused by: java.lang.ClassNotFoundException: org.newsclub.net.unix.AFUNIXSocketFactory\$FactoryArg
|
|
|
Powered by
FUDForum. Page generated in 0.02063 seconds