Exception Description: Unable to acquire a connection from
driver [null], user [null] and URL [null]. Verify that you
have set the expected driver class and URL. Check your login,
persistence.xml or sessions.xml resource. The jdbc.driver
property should be set to a class that is compatible with your
database platform
at
org.eclipse.persistence.exceptions.DatabaseException.unableToAcquireConnectionFromDriverException(DatabaseException.java:376)
at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:91)
In my session customizer I have:
session.getLogin().setConnector(new
JNDIConnector(dataSource)); // I get dataSource from Spring
session.getLogin().useExternalConnectionPooling();
<properties>
<property name="eclipselink.target-database"
value="ca.utoronto.sis.sws.db.ExtendedDB2MainframePlatform"/>
<property name="eclipselink.logging.level"
value="FINE"/>
<property
name="eclipselink.logging.logger"
value="SLF4JSessionLog"/>
<property
name="eclipselink.session.customizer"
value="EclipseLinkSessionCustomizer"/>
</properties>
Any idea why it's trying to go and do this on its own when I
tell it not to?