<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">







<p class="p1">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="p1"><br></p><p class="p1">







<p class="p1">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>
<p class="p2"><br></p>
<p class="p1">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="p1"><br></p><p class="p1"><span class="Apple-style-span">I noticed that another user on this forum mentioned the same repository lock error, but on a&nbsp;</span><span class="Apple-style-span" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; background-color: rgb(255, 255, 255); ">WebSphere 7</span><span class="Apple-style-span">&nbsp;server. (http://drools.46999.n3.nabble.com/Can-Guvnor-provide-client-management-API-td3283602.html#a3283610)</span></p>
<p class="p2"><br></p>
<p class="p1">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="p1"><br></p><p class="p1">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="p2"><br></p>
<p class="p1">thx,</p>
<p class="p1">--Patricia</p></td></tr></table>