In some circumstance, Tomcat can reload a Web application without restarting.
That can happend when an application directory is updated whereasTomcat is running.
This situation may cause frightening troubles for SaadaDB using SQLite :
If you detect the following errors in the Tomcat log :
java.lang.UnsatisfiedLinkError : Native Library /private/var/folders/nx/nxFg6ecKH9GWsGPEbEYT9E+++TI/-Tmp-/sqlite-3.6.20.1-libsqlitejdbc.jnilib already loaded in another classloader
followed by
java.sql.SQLException : [SQLITE_ERROR] SQL error or missing database ()
and by
java.sql.SQLException : [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)
Don’t panic :
Try to stop Tomcat
If you can’t, use a kill -9
Make sure it is stopped
Restart it last update 2011-05-11
|