aspose file tools*
The moose likes Servlets and the fly likes does this look right? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "does this look right?" Watch "does this look right?" New topic
Author

does this look right?

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

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


SCJP
Visit my download page
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

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

Joined: Jun 03, 2000
Posts: 5040

Thanks, Randall.
I will try and let you know if I have any success.
- satya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does this look right?