Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 8880 invoked from network); 13 Jun 2006 03:17:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 03:17:01 -0000 Received: (qmail 86698 invoked by uid 500); 13 Jun 2006 03:16:49 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 86382 invoked by uid 500); 13 Jun 2006 03:16:47 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 86043 invoked by uid 99); 13 Jun 2006 03:16:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 20:16:45 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 20:16:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D59671428E for ; Tue, 13 Jun 2006 03:15:34 +0000 (GMT) Message-ID: <29863223.1150168534445.JavaMail.jira@brutus> Date: Tue, 13 Jun 2006 03:15:34 +0000 (GMT+00:00) From: "Matt Hogstrom (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-1924) Need to register the tomcat jndi url handler somehow In-Reply-To: <112106978.1146098762970.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1924?page=comments#action_12415946 ] Matt Hogstrom commented on GERONIMO-1924: ----------------------------------------- Ping Jeff > Need to register the tomcat jndi url handler somehow > ---------------------------------------------------- > > Key: GERONIMO-1924 > URL: http://issues.apache.org/jira/browse/GERONIMO-1924 > Project: Geronimo > Type: Bug > Security: public(Regular issues) > Components: Tomcat > Versions: 1.1 > Reporter: David Jencks > Assignee: Jeff Genender > Priority: Blocker > Fix For: 1.1 > > Until recently we were using the Tomcat WebappLoader which has this code: > // Register a stream handler factory for the JNDI protocol > URLStreamHandlerFactory streamHandlerFactory = > new DirContextURLStreamHandlerFactory(); > if (first) { > first = false; > try { > URL.setURLStreamHandlerFactory(streamHandlerFactory); > } catch (Exception e) { > // Log and continue anyway, this is not critical > log.error("Error registering jndi stream handler", e); > } catch (Throwable t) { > // This is likely a dual registration > log.info("Dual registration of jndi stream handler: " > + t.getMessage()); > } > } > This is how tomcat finds anything in the web app when you call servletContext.getResource(location_in_WEB_INF). > Since we recently stopped using the tomcat classloader, we need to do this ourselves somewhere. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira