Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » JPA project classpath for JDBC driver dependencies(using Postgresql JDBC driver with optional junixsocket dependency)
JPA project classpath for JDBC driver dependencies [message #1851840] Tue, 19 April 2022 14:56
Jeremy Jackson is currently offline Jeremy JacksonFriend
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
Previous Topic:EclipseLink Validation Exception in Library Eclipse Version 2.7.8
Next Topic:InheritanceType.JOINED not doing the correct JOIN with composite primary key
Goto Forum:
  


Current Time: Fri Dec 01 23:20:23 GMT 2023

Powered by FUDForum. Page generated in 0.02063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top