• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does this look right?

 
Randall Twede
Ranch Hand
Posts: 4439
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Randall Twede
Ranch Hand
Posts: 4439
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Madhav,
It is a custom class

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).]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks, Randall.
I will try and let you know if I have any success.
- satya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic