title: Unable to re-use HSQLDB in Jetty between restarts
body: <p>I'm using the maven-jetty-plugin to run a Spring application. Initially the datasource was declared inside Spring. Due to external constratins, I've moved it to JNDI. The jetty-env.xml section I use for local development is:</p>
  
  <pre><code>&lt;New id="dataSource" class="org.mortbay.jetty.plus.naming.Resource"&gt;
      &lt;Arg&gt;&lt;/Arg&gt;
      &lt;Arg&gt;jdbc/DataSource&lt;/Arg&gt;
      &lt;Arg&gt;
          &lt;New class="com.mchange.v2.c3p0.ComboPooledDataSource"&gt;
              &lt;Set name="driverClass"&gt;org.hsqldb.jdbcDriver&lt;/Set&gt;
              &lt;Set name="jdbcUrl"&gt;jdbc:hsqldb:file:target/file.db;shutdown=true
              &lt;/Set&gt;
              &lt;Set name="user"&gt;sa&lt;/Set&gt;
              &lt;Set name="password"&gt;&lt;/Set&gt;
              &lt;Set name="initialPoolSize"&gt;3&lt;/Set&gt;
              &lt;Set name="maxPoolSize"&gt;5&lt;/Set&gt;
              &lt;Set name="numHelperThreads"&gt;2&lt;/Set&gt;
              &lt;Set name="breakAfterAcquireFailure"&gt;true&lt;/Set&gt;
          &lt;/New&gt;
      &lt;/Arg&gt;
  &lt;/New&gt;
  </code></pre>
  
  <p>Unfortunately I can't see to be able to restart the web context, since the database remains locked. Any thoughts on what I'm doing wrong here?</p>