pksiv wrote:
If Hibernate finds your hibernate.cfg.xml but not a hibernate.properties file, you'll get the message "hibernate.properties not found" but everything should still work fine. ?
Hibernate finds the properties file, but not the cfg.xml file. If I remove the properties file to test the xml file, it results in an error unless the xml file is hardwired in.
pksiv wrote:
Are you certain that when you ran the hard-wired version, the hibernate.properties wasn't also int he Classpath ?
Yes.
pksiv wrote:
Are you certain the database properties are specified in the hibernate.cfg.xml
Yes, as when I hard wired the XML file in, everything worked fine.
I'm pretty sure this is not a bug in the file itself, but in hibernate finding it.
Just in case, here's the contents of the two files:
(hibernate.cfg.xml)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="Pinnacle">
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.password">password</property>
<property name="connection.url">jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:xxx</property>
<property name="connection.username">pinnacle</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
</session-factory>
</hibernate-configuration>
------
(hibernate.properties)
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.connection.password=xxx
hibernate.connection.url=jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:xxx
hibernate.connection.username=pinnacle
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
Thanks for the help!