tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner van Mook <wer...@connecties.com>
Subject reading file in ServletContextListener
Date Sun, 27 Nov 2005 21:45:33 GMT
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 not work.

What am I overlooking?

Kind regards,
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message