[LazyInitializationException] could not initialize proxy - no Session
Voila en fait j'ai toujours mon problème, je ne parviens pas à trouver de solution.
Néanmoins, j'ai un peu plus isolé le problème. J'ai l'exception, uniquement lorsque je tente d'accéder à mon Utilisateur retourné dans ma vue. Je ne parviens pas a résoudre le problème.
Je met ci-dessous mon fichier de configuration Hibernate pour voir si le problème ne vient pas de là:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?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 >
<!-- local connection properties -->
<property name="hibernate.connection.url">jdbc:mysql://localhost/blist</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<!-- property name="hibernate.connection.pool_size"></property -->
<!-- dialect for MySQL -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="current_session_context_class">thread</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">true</property>
<property name="hibernate.use_outer_join">true</property>
<mapping resource="com/subtek/blist/hibernate/bean/utilisateur.hbm.xml" />
</session-factory>
</hibernate-configuration> |