Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 8615 invoked from network); 7 Sep 2004 20:38:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Sep 2004 20:38:53 -0000 Received: (qmail 85587 invoked by uid 500); 7 Sep 2004 20:37:48 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 85352 invoked by uid 500); 7 Sep 2004 20:37:46 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 85282 invoked by uid 99); 7 Sep 2004 20:37:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ivy.liu@gmail.com designates 64.233.170.199 as permitted sender) Received: from [64.233.170.199] (HELO mproxy.gmail.com) (64.233.170.199) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Sep 2004 13:37:44 -0700 Received: by mproxy.gmail.com with SMTP id 80so160812rnk for ; Tue, 07 Sep 2004 13:37:42 -0700 (PDT) Received: by 10.38.179.6 with SMTP id b6mr2412586rnf; Tue, 07 Sep 2004 13:37:42 -0700 (PDT) Received: by 10.38.8.10 with HTTP; Tue, 7 Sep 2004 13:37:42 -0700 (PDT) Message-ID: Date: Tue, 7 Sep 2004 16:37:42 -0400 From: hui liu Reply-To: hui liu To: lucene-dev@jakarta.apache.org, lucene-user@jakarta.apache.org, tomcat-dev@jakarta.apache.org, tomcat-user@jakarta.apache.org Subject: lucene locks index, tomcat has to stop and restart Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I met with such a problem with lucene demo: Each time when I create lucene index, I have to first stop tomcat, and restart tomcat after the index is created. The reason is: the index is locked when using IndexReader.open(index) method in the jsp file. So, I tried to modify the jsp codes by adding close(), but it shows error which said "close() is not a static method". I checked the source codes of lucene IndexReader methods, and found that the close() method is final not static. I tried to change it to static, but resulted in many errors. So, does anybody meet the similar problem as me? Do you have any solutions? Thank you very very much.....!! Ivy. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org