Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 87529 invoked from network); 4 Oct 2009 12:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Oct 2009 12:58:28 -0000 Received: (qmail 95661 invoked by uid 500); 4 Oct 2009 12:58:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95596 invoked by uid 500); 4 Oct 2009 12:58:24 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 95585 invoked by uid 99); 4 Oct 2009 12:58:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Oct 2009 12:58:24 +0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=HTML_MESSAGE,MIME_HEADER_CTYPE_ONLY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.111.92 as permitted sender) Received: from [65.55.111.92] (HELO blu0-omc2-s17.blu0.hotmail.com) (65.55.111.92) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Oct 2009 12:58:12 +0000 Received: from BLU142-W10 ([65.55.111.71]) by blu0-omc2-s17.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 4 Oct 2009 05:57:30 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_94b002f6-5952-489d-aae9-612ba47b35fb_" X-Originating-IP: [72.93.166.148] From: Martin Gainty To: Tomcat Users List Subject: RE: Loading Jar files in a particular order on Tomcat 6 Date: Sun, 4 Oct 2009 08:57:30 -0400 Importance: Normal In-Reply-To: References: <99C8B2929B39C24493377AC7A121E21F84054C1188@USEA-EXCH8.na.uis.unisys.com> X-OriginalArrivalTime: 04 Oct 2009 12:57:30.0629 (UTC) FILETIME=[3B9B5350:01CA44F2] X-Virus-Checked: Checked by ClamAV on apache.org --_94b002f6-5952-489d-aae9-612ba47b35fb_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Larsen Keeping more than one version of the same package and class will cause exce= ssive Administrative work Maven Build Environments will allow you to deploy a specific package/class = and version to a profile maven allows you to compile/install and deploy the same package/class with = a different version for Development=2C QA and Production profiles http://maven.apache.org Martin Gainty=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9 =20 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > Date: Sun=2C 4 Oct 2009 13:02:39 +0200 > Subject: Re: Loading Jar files in a particular order on Tomcat 6 > From: kolibriasdf@gmail.com > To: users@tomcat.apache.org >=20 > 2009/10/4 Leon Rosenberg : > > On Sun=2C Oct 4=2C 2009 at 1:00 AM=2C Eric B. wrot= e: > >> "Caldarale=2C Charles R" wrote in message > > Back to the original post=2C > > why don't you simply patch (maybe automatically with ant) the jar file > > containing the 'old' version of the class and remove it? >=20 > The jar files are provided and signed by an external vendor. >=20 > > You won't be able to keep two different versions of a class in the > > same classloader anyway. >=20 > I want to use the newest version only=2C of course. Normally=2C I would > simply place the jar with the newest versions first in the classpath. > But the tomcat server has no such control=2C instead it just loads jar > files from the WEB-INF/lib directory=2C which means that the order is > based on the OS filesystem. >=20 > Apparently=2C there is no easy way to control the classpath for web > applications in Tomcat=2C so instead I have to make a custom classloader > that does loads classes from the jar files in a controlled order. >=20 > - Rasmus >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: users-unsubscribe@tomcat.apache.org > For additional commands=2C e-mail: users-help@tomcat.apache.org >=20 =0A= _________________________________________________________________=0A= Hotmail: Powerful Free email with security by Microsoft.=0A= http://clk.atdmt.com/GBL/go/171222986/direct/01/= --_94b002f6-5952-489d-aae9-612ba47b35fb_--