Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 3225 invoked from network); 8 Jul 2009 11:42:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 11:42:43 -0000 Received: (qmail 22472 invoked by uid 500); 8 Jul 2009 11:42:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22391 invoked by uid 500); 8 Jul 2009 11:42:49 -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 22380 invoked by uid 99); 8 Jul 2009 11:42:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 11:42:49 +0000 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 aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 11:42:39 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id DDCE9226082 for ; Wed, 8 Jul 2009 13:42:17 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XEpCOfCFJKPf for ; Wed, 8 Jul 2009 13:42:17 +0200 (CEST) Received: from [192.168.245.129] (p549EA685.dip0.t-ipconnect.de [84.158.166.133]) by tor.combios.es (Postfix) with ESMTPA id 941D722609B for ; Wed, 8 Jul 2009 13:42:17 +0200 (CEST) Message-ID: <4A54860D.6020202@ice-sa.com> Date: Wed, 08 Jul 2009 13:42:05 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problem with system property References: <4A5481B6.1080309@byrman.demon.nl> In-Reply-To: <4A5481B6.1080309@byrman.demon.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org CBy wrote: > Hi, > > We have a third-party webapp that sets the following system property: > > System.setProperty("javax.xml.transform.TransformerFactory","net.sf.saxon.TransformerFactoryImpl"); > > > This effectively forces all other webapps to use Saxon as an XLST/XQuery > processor, see: > > http://java.sun.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html#newInstance%28%29 > > > Other webapps, which are perfectly happy with the default, now suddenly > have to include saxon9.jar to get successfully deployed. I can imagine > conflicting webapps in the future. I feel a bit hijacked by this > third-party application You are. (we do not have the source code). What is the > best way to deal with this? > - Bitterly complain to the supplier of that app. - in the meantime, run this app in a separate Tomcat (and JVM) instance. I don't believe there's much else you can do, since those properties are really JVM-global. I had the same case a while ago, with some webapp setting the language properties. Depending of the order in which webapps were being loaded and started, my whole Tomcat would end up speaking in (different) tongues... If you really need this webapp, implementing a front-end which proxies the calls to your webapps to distinct Tomcat instances (listening to different ports) may be the easiest way. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org