java.lang.UnsupportedOperationException when fetching a JDBC connection

  • Share
  • Share

Applies to:
Hibernate, Tomcat

Description:
Occurs at application server.

Cause:
You have used the built-in DBCP to as a JNDI datasource

JAVA-Hibernate , , , , ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    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.

  1. No trackbacks yet.