• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

does this look right?

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks, Randall.
I will try and let you know if I have any success.
- satya
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic