Re: FileInputStream in Servlet
- From: none <""tim\"@(none)">
- Date: Fri, 30 Dec 2005 21:04:36 +0000
bauerg@xxxxxxx wrote:
have your tried placing the file in the same location as the class that reads it?Hi there! I am not sure to be right here at this forum, but:
I have a servlet, which I want to debug within eclipse. The servlet is reading a config-file on startup, this file is opend with a FileInputStream(filename), but without a path!
I have defined the Tomcat4 for MyEclipse with different HOME and BASE, if I set a fix path (i.e. "c:/file.ext") then everythin works fine, but
without the path, the FileInputStream everytime gives a exception: java.io.FileNotFoundException: file.ext
I have placed the file.ext in many directories, but it never has been found!
Where to hell does Tomcat search for this file???
Please could someone help me? Do I have to place the file in TOMCAT_HOME, TOMCAT_BASE, somwhere under one of this, or what?
thanks in advance Georg
Tim .
- References:
- FileInputStream in Servlet
- From: bauerg
- FileInputStream in Servlet
- Prev by Date: Re: The beauty of TCP/IP
- Next by Date: Re: Recommendations for displaying rows throug servlets -- like displaytag
- Previous by thread: FileInputStream in Servlet
- Next by thread: Re: FileInputStream in Servlet
- Index(es):
Relevant Pages
|