Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tomcat doesn't want to follow softlinks 1

Status
Not open for further replies.

frag

Programmer
Dec 7, 2000
321
GB
hi everybody,

if have a tomcat up and running (together with an apache,
ssl, mod_jk, etc.)

everything works fine, but the tomcat doesn't follow
softlinks in the webapps-directory.

could some please tell me why... is there a solution
to make tomcat follow these links?

cheers

frag patrick.metz@epost.de
 
i am talking talking of unix-softlinks... anyone an idea, please?! patrick.metz@epost.de
 
As I don't know unix very well, can you tell me :
- what do you call a soft-link ?
- what do you mean by "following" links ? Water is not bad as long as it stays out human body ;-)
 
a unix 'softlink' is similar to a windows 'shortcut'.

e.g. you define a link called 'index.html' in your application-directory in the tomcat's webapps-folder, the link points to a place somewhere else in your filesystem.

but that is what my tomcat doesn't want to do. it just doesn't follow this link. the apache webserver does. patrick.metz@epost.de
 
Can't this be a security problem ? I mean is it possible that Tomcat can't follow the soft-link because the user doesn't have the rights ?
By the way, I have a tomcat 4.1 server on my Win XP machine. If you want, I can make a test for you to see if tomcat knows how to handle a window shortcut. Water is not bad as long as it stays out human body ;-)
 
I don't think that it is a security problem. The directory at which the link points to belongs to the same user that starts the webserver. It's not a 'permission denied' problem. patrick.metz@epost.de
 
Thanks a lot Grzegorz, that was what I was looking for!

*thumbsup*

Cheers

frag patrick.metz@epost.de
 
AAAHHHH.... the tomcat version i use ( 4.1.12 ) has a bug that prevents it to follow symbolic links, even with the tag

<Resources className=&quot;org.apache.naming.resources.FileDirContext&quot; allowLinking=&quot;true&quot;/>

in the CONTEXT-tag. :-(
patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top