Skip to content

WebSphere Liberty's WSJdbcDataSource logs an exception during startup when using a JNDI DataSource with Hikari still on the classpath #16863

@bushwakko

Description

@bushwakko

When configuring spring to use a jndi-datasource with an application server (liberty in my case), it will try to configure the /health endpoint, and receive the following exception while doing so:

java.sql.SQLException: DSRA9122E: com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource@39ac924b does not wrap any objects of type com.zaxxer.hikari.HikariDataSource. com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.unwrap 441

This is caused by spring using HikariDataSourcePoolMetadataProvidersConfiguration because hikaricp is on the classpath. When attempting to do unwrap() on the datasource-object however, it will get the one from the application server.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions