Hibernate doesn't recognize "hibernate.connection.url" value or "hibernate.connection.username" value. Eclipse-Galileo indicates that 'localhost' and 'cs' are spelled incorrectly. On a previously functional web application, hibernate fails to make a connection to mysql database 'd170'. 'localhost' in c:/Windows/system32/drivers/etc/hosts is 127.0.0.1. mysql-connector-java-5.1.7-bin.jar is in the proper place in the application server applib. This appears to be an easy problem, but I've spent several hours looking at it, and I can't come-up with a solution. Can someone help me? Thanks.
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost/d170</property> <property name="hibernate.connection.username">cs</property> <property name="hibernate.connection.password">java</property> <property name="hibernate.connection.pool_size">10</property> <property name="show_sql">false</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <mapping resource="assignment/mappings/hh_Employee.hbm.xml" /> <mapping resource="assignment/mappings/hh_Project.hbm.xml" /> <mapping resource="assignment/mappings/hh_Company.hbm.xml" /> <mapping resource="assignment/mappings/hh_TimeCard.hbm.xml" /> </session-factory> </hibernate-configuration>
|