title: HSQLDB Embedded in Jar throwing
body: <p>I have an HSQLDB embedded within a fat-jar in the resources directory of the jar. When my script attempts to access the DB, it's throwing an error regarding the lack of a <code>.lck</code> file. However, I was under the impression that DB's within jar files would always be accessed in read-only mode.</p>
  
  <pre><code>Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@18f6cf91[file =/mnt/c/ctakes/SparkCtakes/jar:file:/mnt/c/ctakes/SparkCtakes/lib/ctakes-assembly-4.0.1.jar!/resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /mnt/c/ctakes/SparkCtakes/jar:file:/mnt/c/ctakes/SparkCtakes/lib/ctakes-assembly-4.0.1.jar!/resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab.lck (No such file or directory)
          at org.hsqldb.error.Error.error(Unknown Source)
          at org.hsqldb.error.Error.error(Unknown Source)
          at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source)
          at org.hsqldb.persist.Logger.acquireLock(Unknown Source)
          at org.hsqldb.persist.Logger.open(Unknown Source)
          at org.hsqldb.Database.reopen(Unknown Source)
          at org.hsqldb.Database.open(Unknown Source)
          at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
          at org.hsqldb.DatabaseManager.newSession(Unknown Source)
          ... 112 more
  </code></pre>
  
  <p>The way I am creating this fat-jar containing the database resources is by placing the resources folder in <code>src/main/scala/resources</code> and then using <code>sbt-assembly</code> to package everything.</p>