File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Softlink woes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Softlink woes" Watch "Softlink woes" New topic

Softlink woes

Swati Singhal
Ranch Hand

Joined: Dec 08, 2003
Posts: 31

I have my application installed on Tomcat server.
I created a softlink from within my application context to a data folder which is outside the appliation context.

Say for e.g. my app name is abc and i create a folder named test within it
so /abc/test/ points to a data folder outside the application context.

Now when I run this web application, I want to fetch one of the files under the data folder (Which is outside the application context), I actually point to /abc/test/ and then the path to that file.

Say it's a text/image file, I am able to get the contents of this data folder by creating the softlink, but when I try to open this text/image file using my softlink, it says File not found, whereas the file is very much there...

Please help !!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Search for the "allowLinking" attribute

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Softlink woes
It's not a secret anymore!