Return-Path: Mailing-List: contact turbine-torque-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-user@jakarta.apache.org Received: (qmail 13040 invoked by uid 98); 23 Dec 2002 22:38:48 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 13011 invoked from network); 23 Dec 2002 22:38:46 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 23 Dec 2002 22:38:46 -0000 Received: (qmail 43249 invoked by uid 500); 23 Dec 2002 22:37:29 -0000 Received: (qmail 43242 invoked from network); 23 Dec 2002 22:37:28 -0000 Received: from unknown (HELO grifware.com) (216.126.222.35) by daedalus.apache.org with SMTP; 23 Dec 2002 22:37:28 -0000 Received: (qmail 3784 invoked by uid 0); 23 Dec 2002 22:30:37 -0000 Received: from unknown (HELO grifware.com) (192.168.64.171) by 192.168.64.172 with SMTP; 23 Dec 2002 22:30:37 -0000 Message-ID: <3E079090.5020105@grifware.com> Date: Mon, 23 Dec 2002 14:39:12 -0800 From: Jake Fear User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Turbine Torque Users List Subject: Re: why accessing internet for dtd every execution? (solved) References: <4.3.2-J.20021223162328.033d9830@smtp.comcast.net> <4.3.2-J.20021223172653.033c4190@smtp.comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think the best bet is to post a bug on the bugzilla database (I think there are links from the top-level jakarta site), and supply the patch along with it. Cheers, Jake tek1 wrote: > thanks for your reply jake. > > actually, the database.dtd file is inside the torque-3.0.jar file, but > the DTDResolver class was not picking it up for some reason. > > so i took a look inside the > org.apache.torque.engine.database.transform.DTDResolver class' source > code and found the problem. > > i'm not 100% sure if this is correct, but in the constructor, instead > of using: > > InputStream dtdStream = > getClass().getResourceAsStream("database.dtd"); > > i used: > > InputStream dtdStream = > this.getClass().getClassLoader().getResourceAsStream("database.dtd"); > > with this change, it's able to pickup the database.dtd from the .jar, > so it no longer accesses the internet. > > if this looks like a viable patch, to whom do we submit the patch? > > thanks. > > > > > At 13:30 02/12/23 -0800, you wrote: > >> Sure, put it on your local disk and change the refernce from the >> actual XML file that is referencing it. >> >> tek1 wrote: >> >>> is there a way to disable torque from accessing the internet to >>> lookup the dtd upon every execution? >>> >>> ant is displaying: >>> >>> Resolver: used http://jakarta.apache.org/turbine/dtd/database.dtd >>> >>> everytime... >>> >>> thanks. >> > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > >