This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have Apache\Tomcat server running on win98. Until recently everything was fine but now Im getting internal servlet error saying the system cannot find the path. I have tried to find out what is wrong with no success so for the time being I want to work around it by changing relative path to absolute path. here is original code log = new FileIO("../webapps/examples/SiteLog.txt"); does this look right for new code? log = new FileIO("c:\\Program Files\Apache Group\Apache\tomcat\jakarta-tomcat\webapps\examples\SiteLog.txt"); it has been a long time since I have really been into this and im confused because of changing forward slashes to back slashes
Randall: log = new FileIO("../webapps/examples/SiteLog.txt"); Is FileIO a custom class you developed or is it avail. for public? I have a similar (exact) prob and I gaveup because I couldn't create a new file in the webapps location... Sorry for the intrusion, but just thought, I could resurrect my old project. Thanks. - satya
I created the empty files from windows explorer(or notepad I forget which). the servlet worked fine for over a year but quit working about the time I started getting entries in my logs from the code red worm which is not supposed to affect apache. I have also been infected with trojans so who knows why it isnt working anymore. I am wondering if I have to change my server configuration also to use absolute paths. [This message has been edited by Randall Twede (edited August 17, 2001).]
Joined: Jun 03, 2000
Thanks, Randall. I will try and let you know if I have any success. - satya