Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 54702 invoked from network); 26 Oct 2006 06:39:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 06:39:41 -0000 Received: (qmail 29894 invoked by uid 500); 25 Oct 2006 23:34:21 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29837 invoked by uid 500); 25 Oct 2006 23:34:21 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29816 invoked by uid 99); 25 Oct 2006 23:34:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 16:34:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [132.174.29.209] (HELO mshieldserver1.oclc.org) (132.174.29.209) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Oct 2006 16:34:08 -0700 Received: From OAEXCH2SERVER.oa.oclc.org ([132.174.29.222]) by mshieldserver1.oclc.org (WebShield SMTP v4.5 MR2); id 1161819227828; Wed, 25 Oct 2006 19:33:47 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [commons-digester] still can't get xmlrules to work in tomcat Date: Wed, 25 Oct 2006 19:33:47 -0400 Message-ID: <4643B3D2B28BE14FAA467B9FF400445F0168E8C5@OAEXCH2SERVER.oa.oclc.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [commons-digester] still can't get xmlrules to work in tomcat Thread-Index: Acb4jG4jkBCXRFqpTzqT3QStdKBhbgAAD5sgAABS72A= From: "Allen,Eva" To: "Jakarta Commons Users List" X-Virus-Checked: Checked by ClamAV on apache.org I'm still having problems with getting xmlrules to work within a Tomcat servlet container. I pretty much snagged the code I use from the xmlrules example that comes with the digester source. The problem comes with the getSystemResource call. I keep getting a null URL. I finally named the rules file x.xml and placed it in every directory under $TOMCAT_HOME and used the following code: =20 URL rulesURL =3D ClassLoader.getSystemResource("x.xml"); but still the returned URL is null. This works fine as long as I'm not running within the Tomcat servlet container. It also works fine if I do this instead URL rulesURL =3D null; File f =3D new File("x.xml"); try { rulesURL =3D f.toURL(); } catch (MalformedURLException e1) { e1.printStackTrace(); } but I'd much prefer to do it the "right" way if I could. Any hints? -- Eva Allen Consulting Software Engineer, OCLC, Inc. 6565 Frantz Rd., Dublin, OH 43017 614.764.6009 | allene@oclc.org Views contained herein are my own; they do not necessarily reflect those of my employer --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org