Weil das stille schweigen noch im Raum steht glaube ich das ich zu wenig information gegeben habe.
Deshalb Poste ich mal meine hibernate.cfg
Kann es sein das ich einen Connection Pool drauche?
Weil das sieht so aus das er die Verbindung zur Datenbank verliehrt und die nicht wieder aufbauen kann.
Code:
<?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>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/lod?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.HashtableCacheProvider
</property>
<!-- Print SQL to stdout. -->
<property name="show_sql">false</property>
<property name="format_sql">false</property>
<!-- Drop and then re-create schema on SessionFactory build, for testing.
<property name="hbm2ddl.auto">update</property>-->
<!-- Bind the getCurrentSession() method to the thread. -->
<property name="current_session_context_class">thread</property>
<mapping resource="de/dts/tm/hibernate/login/User.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/Documents.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/Language.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/State.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/MasterDocuments.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/MasterText.hbm.xml"/>
<mapping resource="de/dts/tm/hibernate/document/DocumentText.hbm.xml"/>
</session-factory>
</hibernate-configuration>