Re: (my) problem locating a textfile from a Servlet

2001-06-26 Thread Tim Endres
Have you tried a leading slash? file1 = getServletContext().getResource( "/WEB-INF/log4j.xml" ); What we do, is get the "real" path with: String realPath = this.getServletContext().getRealPath( "/WEB-INF/dir" ); new File( realPath, fileName ); We do this because getResource() is

(my) problem locating a textfile from a Servlet

2001-06-26 Thread Regele, Manfred
Hi, I wanted to port a (running) application from tomcat to orion. It seems my coding is not proper/portable. In my war-archive included (in WEB-INF subdirectory) are several text config files (yes I know JNDI is a better way -but its lowest common functionality) - and these files I want to acce