<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You have to make sure the running Guvnor instance is completely
    stopped before re-deploying. Jackrabbit only allows for one process
    to access the repository at a time. Seems maybe the repository in
    your case is still open (even if it's the same process, but with
    another classloader -&gt; another webapp that hasnt been stopped
    yet).<br>
    <br>
    <blockquote
cite="mid:1314289445.39101.YahooMailClassic@web161013.mail.bf1.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">
              <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><a class="moz-txt-link-rfc2396E" href="mailto:ge0ffrey.spam@gmail.com">&lt;ge0ffrey.spam@gmail.com&gt;</a></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
                    <a class="moz-txt-link-rfc2396E" href="mailto:ge0ffrey.spam@gmail.com">&lt;ge0ffrey.spam@gmail.com&gt;</a><br>
                    Subject: Re: [rules-users] Guvnor - Issues with
                    repository lock on Tomcat re-deployment<br>
                    To: <a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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 moz-do-not-send="true"
                                      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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true"
                        ymailto="mailto:rules-users@lists.jboss.org"
                        href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        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>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>