Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 31401 invoked from network); 23 Jul 2006 17:01:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jul 2006 17:01:31 -0000 Received: (qmail 43674 invoked by uid 500); 23 Jul 2006 17:01:31 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 43660 invoked by uid 500); 23 Jul 2006 17:01:31 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 43651 invoked by uid 99); 23 Jul 2006 17:01:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 10:01:30 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jukka.zitting@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 10:01:30 -0700 Received: by nf-out-0910.google.com with SMTP id o25so1281694nfa for ; Sun, 23 Jul 2006 10:01:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XWeJBF9bWuVn//M2LROzKjNZR2aNhBjOs8YwFXRujBGDe1GJ/hxmN0y1WoaWTbAQZOe0shbPkXUgfe3cCMZB2aHnVbdP3IC7dafTsAoHP3v0w9A+DZBhoP3PGKxpadpgd2EpSiAjDUJTBVaOmxC7P7lp9KIGWQ0QsrSYgJ5rp2g= Received: by 10.78.151.15 with SMTP id y15mr1189833hud; Sun, 23 Jul 2006 10:01:06 -0700 (PDT) Received: by 10.78.34.10 with HTTP; Sun, 23 Jul 2006 10:01:06 -0700 (PDT) Message-ID: <510143ac0607231001n23fdb87aga7a1d38d0d821e@mail.gmail.com> Date: Sun, 23 Jul 2006 20:01:06 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: JackRabbit - Tomcat two problems In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <510143ac0607171012t550df408w5b29377a72cb4d09@mail.gmail.com> <510143ac0607210224i1fd4c053x488915aca479d41e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 7/21/06, Milan Trajkovic wrote: > I have deployed Jackrabbit in model 1 deployment (all jars within WEB-INF/lib). > It is accessed through JNDI (Repository reference is held in singleton). > When Tomcat is shut down Jackrabbit sequence is started, but obviously > shutdown is called (as result of shutdown hook of JVM), after > nullifying log instances . In Tomcat 5.5.17 patch that was mentioned > (regarding slf4j) is applied (I have checked src), but it does not > address this issue :(. Ah, that explains the issue. The default JVM shutdown hook in RepositoryImpl is way too late for shutting down the repository within a web application. You need to explicitly call RepositoryImpl.shutdown() in a Servelt.destroy() or a similar context. Normally this is best handled by the same servlet that instantiates the repository in the first place. It seems that this information is not included in the model 1 howto on the web site. Sorry for that, I'll go on and fix the site. BR, Jukka Zitting -- Yukatan - http://yukatan.fi/ - info@yukatan.fi Software craftsmanship, JCR consulting, and Java development