Hey.
BaseWrapperManagedConnectionFactory class loading is cryptic at best. Could you debug and check what info CNFEs provide?
Also, from examples I remember, this particular option was used with xa-datasource, not sure if its relevant here or not.
Could you share driver setup, part of connection URL and possibly any detail on classloading/structure of app?
AFAIR, workaround:
<check-valid-connection-sql>select 1</check-valid-connection-sql>