Hi,
I am currently trying to upgrade geotools from 14.3 to 21.2 in a
project in order to make it Java-11 compatible.
So far, everything seems to work again, except for unwrapping
connections from the connection pool (Hikari pool) when running on
tomcat.
With geotools 14.3 it was enough to place a service-file in
META-INF/services named "org.geotools.data.jdbc.datasource.UnWrapper"
and the content:
"at.somecompany.spatial.geotools.data.oracle.HikariCpUnWrapper". With
21.2 I get the exception below.
WARNUNG: Oracle NG (JNDI) should be used, but could not connect
java.io.IOException: Unable to obtain Oracle Connection require for
SDO Geometry access).Check connection pool implementation to unsure
unwrap is available
at
org.geotools.data.oracle.OracleNGDataStoreFactory.createDataStoreInternal(OracleNGDataStoreFactory.java:176)
at
org.geotools.jdbc.JDBCJNDIDataStoreFactory.createDataStoreInternal(JDBCJNDIDataStoreFactory.java:180)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:389)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:48)
at
org.geotools.data.DataAccessFinder.getDataStore(DataAccessFinder.java:119)
at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:69)
Any idea what was / could have been changed between 14.3 and 21.2 that
could lead to the unwrapper being ignored / not found?
Thank you in advance & best regards, Clemens
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users