Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 25402 invoked from network); 9 Aug 2010 11:12:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 11:12:46 -0000 Received: (qmail 62464 invoked by uid 500); 9 Aug 2010 11:12:46 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 61878 invoked by uid 500); 9 Aug 2010 11:12:43 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 61869 invoked by uid 99); 9 Aug 2010 11:12:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 11:12:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.191.128.81] (HELO mxout2.iskon.hr) (213.191.128.81) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 11:12:32 +0000 Received: from mxscanout.iskon.hr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 87C48CBEDF for ; Mon, 9 Aug 2010 13:12:11 +0200 (CEST) Received: from mx.iskon.hr (unknown [213.191.142.124]) by mxscanout.iskon.hr (Postfix) with SMTP id 0F4622E36E9 for ; Mon, 9 Aug 2010 13:12:11 +0200 (CEST) Received: (qmail 21608 invoked from network); 9 Aug 2010 13:12:11 +0200 X-AVScan: ClamAV X-Remote-IP: 89.164.30.233 Received: from 30-233.dsl.iskon.hr (HELO es55x86w0.jboss.hr) (89.164.30.233) by mx.iskon.hr with SMTP; 9 Aug 2010 13:12:10 +0200 Message-ID: <4C5FE28B.4050209@apache.org> Date: Mon, 09 Aug 2010 13:12:11 +0200 From: Mladen Turk User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: dev@tomcat.apache.org Subject: Re: Sharing Native Library from parent classloader? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: IskonProtect X-PerlMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1200_1299 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0' X-Virus-Checked: Checked by ClamAV on apache.org On 08/09/2010 12:15 PM, Konstantin Kolinko wrote: > 2010/8/7 Brock Noland: > > 1. This is a question for the users@ list, not dev@, because it is not > about improving Tomcat, but about running your webapp. > But it could be. > 2. Tomcat Native library is loaded by > org.apache.catalina.core.AprLifecycleListener > class, if it is present in server.xml. You can look at the sources, > but there is nothing special. > > 3. You must read this doc: > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > > In essence, you have to put your jar in ${catalina.base}\lib and at > the same time _remove_ it from your webapp. The result will be that it > will be loaded by the Common classloader. > For a long time I'm trying to solve the upper problems. It would break (well extend) the servlet spec if we offer to webapps that we do that automatically for them. That way user would just provide a standard .war telling what part of the webapp should be loaded by parent class loader (making that singleton for the server lifetime of course) On redeployment those resources won't be redeployed until the full server restart. Regards -- ^TM --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org