Joined: Mon Feb 16, 2004 11:28 pm Posts: 16
|
If I put the same JNDI name for the datasource in hibernate.properties it works. When I swap the hibernate.cfg.xml for hibernate.properties, I get this error. Maybe Im not specifying enough in the cfg file. Here is what I have.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:/QQQAdminDB</property>
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files -->
<mapping resource="Team.hbm.xml"/>
</session-factory>
</hibernate-configuration>
|
|