java.lang.UnsupportedOperationException when fetching a JDBC connection
March 20th, 2009
Applies to:
Hibernate, Tomcat
Description:
Occurs at application server.
Cause:
You have used the built-in DBCP to as a JNDI datasource
In Tomcat (maybe other situations) if you are using the built-in DBCP to as a JNDI datasource, be sure that you do not specify hibernate.connection.username or hibernate.connection.password in either hibernate.cfg.xml or hibernate.properties. DBCP does not implement the version of Datasource.getConnection() that takes a username and password.