B
BernoBerno
Gast
Hallo zusammen, bei mir tritt der nachfolgende Fehler auf, wenn ich das Projekt ausführen will.
Es läuft auf einem Linux-Rechner mit tomcat7 und einer MySQL Datenbank. Installiert ist der originale SUN/Oracle-JDK und JRE
kann mir hierbei jemand helfen?
weitere Infos:
hibernate.cfg.xml:
Code:
[XML]<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/projekt</property>
<property name="hibernate.connection.username">root</property>
...
<property name="hibernate.show_sql">true</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
[/XML]
user und pw sind gültig für die MySQL Datenbank
wäre bei hilfe sehr dankbar.
Gruß
BernoBerno
Es läuft auf einem Linux-Rechner mit tomcat7 und einer MySQL Datenbank. Installiert ist der originale SUN/Oracle-JDK und JRE
Code:
org.hibernate.exception.JDBCConnectionException: Cannot open connection
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326)
kann mir hierbei jemand helfen?
weitere Infos:
hibernate.cfg.xml:
Code:
[XML]<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/projekt</property>
<property name="hibernate.connection.username">root</property>
...
<property name="hibernate.show_sql">true</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
[/XML]
user und pw sind gültig für die MySQL Datenbank
wäre bei hilfe sehr dankbar.
Gruß
BernoBerno