Bonjour,
je ne sais pas si c'est le bon forum...
J'utilise HSQLDB, Hibernate et Spring. Tout fonctionne correctement hormis le fait qu'un fichier .lck est généré au niveau de ma base HSQLDB et que dès que je veux mettre à jour l'application (sous WebLogic), j'obtiens une erreur du type :
Caused by: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@58240c93[file =F:\bea\DOMAINE_U3_OUEST_DVT_WL10\applications\covoiturage\WEB-INF\db\covoiturage.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : F:\bea\DOMAINE_U3_OUEST_DVT_WL10\applications\covoiturage\WEB-INF\db\covoiturage.lck
Je suis obligé de redémarrer le serveur pour supprimer le fichier manuellement et refaire fonctionner l'application correctement. 
Voici mon fichier de configuration Spring :
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 27 28 29
| <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
<value>fr/su/covoiturage/metier/User.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true
</prop>
<prop key="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect
</prop>
<prop key="hibernate.connection.driver_class">org.hsqldb.jdbcDriver
</prop>
<prop key="hibernate.connection.url">
jdbc:hsqldb:file:/F:/bea/DOMAINE_U3_OUEST_DVT_WL10/applications/covoiturage/WEB-INF/db/covoiturage
</prop>
<prop key="hibernate.connection.username">sa
</prop>
<prop key="hibernate.connection.password">
</prop>
</props>
</property>
</bean> |
Que dois-je faire pour que le fichier ne soit plus locké lorsque j'arrete l'application ?
Partager