RE: reading file in ServletContextListener

2005-11-28 Thread GB Developer
, November 28, 2005 11:28 AM To: 'Tomcat Users List' Subject: RE: reading file in ServletContextListener would work, but where / is (without the getRealPath part) is the directory from which Tomcat is being started, and who knows (or should have to care) where

reading file in ServletContextListener

2005-11-27 Thread Werner van Mook
Hi, In my class which implements ServletContextListener I try to read a file. it looks like : parser.parse(friends.xml); When I start tomcat 5.5.12 I get a FileNotFound Exception on the friends.xml file. The file is in the root of my web-app. I also tried /friends.xml but alas it did

Re: reading file in ServletContextListener

2005-11-27 Thread Wendy Smoak
On 11/27/05, Werner van Mook [EMAIL PROTECTED] wrote: In my class which implements ServletContextListener I try to read a file. it looks like : parser.parse(friends.xml); When I start tomcat 5.5.12 I get a FileNotFound Exception on the friends.xml file. The file is in the root of my

Re: reading file in ServletContextListener

2005-11-27 Thread Werner van Mook
To make it more clear of what I try to do here is the complete method in which I try to read a file. private void list() throws Exception { XMLReader parser = XMLReaderFactory.createXMLReader( org.apache.xerces.parsers.SAXParser);

Re: reading file in ServletContextListener

2005-11-27 Thread Wendy Smoak
On 11/27/05, Werner van Mook [EMAIL PROTECTED] wrote: To make it more clear of what I try to do here is the complete method in which I try to read a file. private void list() throws Exception { XMLReader parser = XMLReaderFactory.createXMLReader(