Bug 40581 - Symbolic links not (re)followed when application is reloaded
Symbolic links not (re)followed when application is reloaded
Product: Tomcat 5
Classification: Unclassified
Component: Catalina
PC Linux
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2006-09-22 12:29 UTC by Marc Guillemot
Modified: 2006-11-25 13:23 UTC (History)
0 users


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.

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.