Is the fisrt time that I see the connection.url as : //localhost:3306/budget
I've always seen it as:
jdbc:mysql://localhost:3306/budget
Raul.
Also in some cases you sould use 127.0.0.1 instead of localhost.
david b wrote:
Konstantin,
That is good advice... and it has got me past that issue.
Only one left I think is that I did something wrong with my connections attributes.
org.hibernate.exception.GenericJDBCException: Cannot open connection
com.entercite.finance.persistence.exception.DataAccessLayerException
org.hibernate.exception.GenericJDBCException: Cannot open connection
Stack Trace:
*
com.entercite.finance.persistence.abstrt.AbstractDao.handleException(AbstractDao.java:133)
*
com.entercite.finance.persistence.abstrt.AbstractDao.find(AbstractDao.java:90)
* com.entercite.finance.persistence.LoginDaoImpl.find(LoginDaoImpl.java:21)
*
com.entercite.finance.model.abstrt.LoginComponent.isValidLogin(LoginComponent.java:55)
* com.entercite.finance.model.abstrt.LoginComponent.doLogin(LoginComponent.java:35)
My hibernate.cfg.xml looks like this:
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.username">root</property>
<property name="connection.password">xxx</property>
<property name="connection.url">//localhost:3306/budget</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="com/entercite/finance/model/Login.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I am using mySQL and the Database is called budget...
//localhost:3306/budget
That should work yes?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]