Bug 40581 - Symbolic links not (re)followed when application is reloaded
Summary: Symbolic links not (re)followed when application is reloaded
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.9
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 12:29 UTC by Marc Guillemot
Modified: 2006-11-25 13:23 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Guillemot 2006-09-22 12:29:06 UTC
When the path of the docBase of an application contains a symbolic link Tomcat
still consider the initial targeted folder after a reload.

Ex:
when file system first contains:
/foo/myApp_version1 (dir)
/foo/myApp -> /foo/myApp_version1 (symbolic link)

Tomcat is started and then application myApp is stopped. Symbolic link is
changed to point to myApp_version2:
/foo/myApp_version1 (dir)
/foo/myApp_version2 (dir)
/foo/myApp -> /foo/myApp_version2 (symbolic link)

and finally application myApp is started. The problem is that the displayed web
application is still the one contained in /foo/myApp_version1 (the initially
targeted folder)and not the one contained in /foo/myApp_version2.
Comment 1 Mark Thomas 2006-11-25 13:23:01 UTC
This behaviour is by design. You need to undeploy and redeploy your application
for the changes to take effect. I have updated the docs in SVN to make this
clear. The updated documentation will in included in 5.5.21 onwards.