From dev-return-22130-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Feb 25 10:07:35 2009 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 51664 invoked from network); 25 Feb 2009 10:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 10:07:35 -0000 Received: (qmail 4508 invoked by uid 500); 25 Feb 2009 10:07:33 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 4480 invoked by uid 500); 25 Feb 2009 10:07:32 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 4467 invoked by uid 99); 25 Feb 2009 10:07:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 02:07:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tmueller@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Feb 2009 10:07:25 +0000 Received: from source ([209.85.220.161]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSaUYRMVN0zQhiZKEZRQ3nDN7ZyceLLQG@postini.com; Wed, 25 Feb 2009 10:07:04 UTC Received: by fxm5 with SMTP id 5so3495683fxm.10 for ; Wed, 25 Feb 2009 02:07:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.181.226.2 with SMTP id d2mr271993bkr.204.1235556420574; Wed, 25 Feb 2009 02:07:00 -0800 (PST) In-Reply-To: <510143ac0902160951x441d45a3i74143291ed4a1960@mail.gmail.com> References: <510143ac0902160951x441d45a3i74143291ed4a1960@mail.gmail.com> Date: Wed, 25 Feb 2009 11:07:00 +0100 Message-ID: <91f3b2650902250207o18886552o5e9253a2be2e9872@mail.gmail.com> Subject: Re: Making Derby an optional dependency From: =?ISO-8859-1?Q?Thomas_M=FCller?= To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, > remove the compile-scope Derby dependency from jackrabbit-core +1 > having Derby included for example in WEB-INF/lib of the > Jackrabbit webapp is troublesome due to the Derby background threads > making it difficult to properly un- or redeploy such webapps. A better > alternative is to have the Derby as a shared container-level library > (common/lib in Tomcat). FYI: Tomcat and Glassfish 3 sets most static fields (final or non-final) to null when unloading a web application. This can cause a NullPointerException with some databases / libraries. In Tomcat >= 6.0 this behavior can be disabled by setting the system property org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES to false, however Tomcat may then run out of memory. A known workaround is to put the database / library in the shared lib directory. Regards, Thomas