<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div><br></div>I used Tomcat Manager to un-deploy/deploy Guvnor, so Tomcat is running all the time. And, when I re-deploy Guvnor on a running instance of Tomcat, I got the repository lock error. In order to be able to deploy a new Guvnor build, I have to actually stop Tomcat server. But on that server I have other applications running, and stopping the server is not an ideal situation. Best case for my application is to be able to deploy a new Guvnor build on a running Tomcat server.<div><br></div><div>--Patricia</div><div><div><br><br>--- On <b>Thu, 8/25/11, Geoffrey De Smet <i>&lt;ge0ffrey.spam@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Geoffrey De Smet &lt;ge0ffrey.spam@gmail.com&gt;<br>Subject: Re: [rules-users] Guvnor - Issues with repository lock on Tomcat
 re-deployment<br>To: rules-users@lists.jboss.org<br>Date: Thursday, August 25, 2011, 11:05 AM<br><br><div id="yiv1995080712">

  

    
  
  
    Did you close down Tomcat6 normally? So not with kill or kill -9?<br>
    <br>
    Op 25-08-11 16:45, Patricia Bogoevici schreef:
    <blockquote type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font:inherit;" valign="top">
              <p class="yiv1995080712p1">I ran Guvnor 5.1 under Tomcat6. If I am
                using Tomcat manager to re-deploy Guvnor, I get this
                error about the repository lock:</p>
              <p class="yiv1995080712p1"><br>
              </p>
              <p class="yiv1995080712p1">
              </p>
              <p class="yiv1995080712p1">Caused by:
                org.drools.repository.RulesRepositoryException:
                javax.jcr.RepositoryException: The repository home
                /MY_SERVER_PATH/guvnor/WEB-INF/classes/repository
                appears to be already locked by the current process.</p>
              <p class="yiv1995080712p2"><br>
              </p>
              <p class="yiv1995080712p1">To fix the lock error I had to stop Tomcat,
                upload the new Guvnor war, and start Tomcat.&nbsp;It is
                pretty inconvenient that one has to restart the whole
                server, as that would disrupt any other application that
                is deployed on the same server.</p>
              <p class="yiv1995080712p1"><br>
              </p>
              <p class="yiv1995080712p1"><span class="yiv1995080712Apple-style-span">I noticed
                  that another user on this forum mentioned the same
                  repository lock error, but on a&nbsp;</span><span class="yiv1995080712Apple-style-span" style="
font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;background-color:rgb(255, 255, 255);">WebSphere 7</span><span class="yiv1995080712Apple-style-span">&nbsp;server.
(<a rel="nofollow" class="yiv1995080712moz-txt-link-freetext" target="_blank" href="http://drools.46999.n3.nabble.com/Can-Guvnor-provide-client-management-API-td3283602.html#a3283610">http://drools.46999.n3.nabble.com/Can-Guvnor-provide-client-management-API-td3283602.html#a3283610</a>)</span></p>
              <p class="yiv1995080712p2"><br>
              </p>
              <p class="yiv1995080712p1">I also checked the JackRabbit source code,
                and Wiki, and the documentation says that this error
                happens when the repository is not properly closed.&nbsp;</p>
              <p class="yiv1995080712p1"><br>
              </p>
              <p class="yiv1995080712p1">Can anyone from the Drools-Guvnor team add
                more details about this? Is this a JackRabbit issue, or
                a Drools-Guvnor?&nbsp;</p>
              <p class="yiv1995080712p2"><br>
              </p>
              <p class="yiv1995080712p1">thx,</p>
              <p class="yiv1995080712p1">--Patricia</p>
            </td>
          </tr>
        </tbody>
      </table>
      <pre><fieldset class="yiv1995080712mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a rel="nofollow" class="yiv1995080712moz-txt-link-abbreviated" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a rel="nofollow" class="yiv1995080712moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="yiv1995080712moz-signature">-- 
With kind regards,
Geoffrey De Smet</pre>
  

</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></div></div></td></tr></table>