er [mailto:[EMAIL PROTECTED]
> Sent: Monday, 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 To
ve, 'context' would be obtained:
ServletContext context = servletContextEvent.getServletContext();
> -Original Message-
> From: Werner van Mook [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 27, 2005 4:32 PM
> To: Tomcat Users List
> Subject: Re: reading file
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(
> "org.ap
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");
parser.setContentHandler(n
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 th
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