I pasted in your code (changing the debug println()s to have your initials, not mine):
Code:
/** from the hibernate forums:
* http://forum.hibernate.org/viewtopic.php?t=979553&highlight=
*
*/
private OracleDAOFactory() throws DAOException {
m_configuration = new Configuration();
// Configure the configuration. Note that this is where all the
// various configuration files are read in.
try {
m_configuration.configure(CONFIG_FILE_NAME);
// Set up the database connection parameters appropriately.
configureDatabaseForEnvironment(m_configuration,
CommonFunctions.getEnvironment());
} catch (Exception h) {
h.printStackTrace();
}
// Create a Hibernate session factory.
try {
System.out.println("SB: pre-buildSessionFactory()");
m_factory = m_configuration.buildSessionFactory();
System.out.println("SB: post-buildSessionFactory()");
} catch (Exception h) {
h.printStackTrace();
}
// Keep track of the singelton instance
m_instance = this;
}
And still got the same lack-of-exception response (note the username being cfuadm-no, which doesn't exist):
Code:
Checking catabase connectivity...
BS: OracleDAOFactory().getInstance()
BS: configureDatabaseForEnvironment()
BS: cfuadm-no/xxxxxxxx@jdbc:oracle:oci8:@db
SB: pre-buildSessionFactory()
SB: post-buildSessionFactory()
factory checked out
SUCCESS: Database connectivity checks out.
[/code]