Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 40920 invoked from network); 4 Dec 2009 16:52:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 16:52:56 -0000 Received: (qmail 86200 invoked by uid 500); 4 Dec 2009 16:52:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 86142 invoked by uid 500); 4 Dec 2009 16:52:52 -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 86131 invoked by uid 99); 4 Dec 2009 16:52:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 16:52:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 16:52:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NGbOP-0001Jd-9I for users@tomcat.apache.org; Fri, 04 Dec 2009 08:52:29 -0800 Message-ID: <26636133.post@talk.nabble.com> Date: Fri, 4 Dec 2009 08:52:29 -0800 (PST) From: "eugeny-a.smirnov" To: users@tomcat.apache.org Subject: Re: Custom URL handlers in Tomcat web app In-Reply-To: <47E11E27.1020604@christopherschultz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: eugeny-a.smirnov@db.com References: <16027888.post@talk.nabble.com> <16118205.post@talk.nabble.com> <47DFCB91.4050103@christopherschultz.net> <47E11E27.1020604@christopherschultz.net> Hi I've resolved this issue in this way: URLStreamHandlerFactoryImpl.termspecProtocolHandler = handlerClass; try { for (final Field field : URL.class.getDeclaredFields()) { if ("factory".equalsIgnoreCase(field.getName()) ) { field.setAccessible(true); field.set(null, new URLStreamHandlerFactoryImpl((URLStreamHandlerFactory) field.get(null))); } } } catch (Throwable e) { logger.error(e); } -- View this message in context: http://old.nabble.com/Custom-URL-handlers-in-Tomcat-web-app-tp15629476p26636133.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org