On 04/03/2010 12:56, Chinmoy Chakraborty wrote: > Actually I want to update the jar with the latest one inside 'lib'...and > want to make our app hot-updatable. what would be a good idea for that?
Replace the WAR file with the a new version. Tomcat (with default settings) will take care fo the rest. Mark > > > > On Thu, Mar 4, 2010 at 5:23 PM, Pid <p...@pidster.com> wrote: > >> On 04/03/2010 10:53, Chinmoy Chakraborty wrote: >> >>> Hi All, >>> >>> Is it possible to delete a jar file from ../WEB-INF/lib when Tomcat is >>> running? I tried to delete the jar from 'lib' after putting following >>> entry >>> in catalina.policy: >>> >> >> It might be possible, but it would be a *very* bad idea. >> >> >> grant codeBase "file:${catalina.home}/webapps/abcd/WEB-INF/lib" { >>> permission java.io.FilePermission "read, write, delete"; >>> }; >>> >>> but it was giving following error: >>> >>> java.io.FileNotFoundException: >>> C:\AppServer\Tomcat\apache-tomcat-6.0.10\webapps\ >>> abcd\WEB-INF\lib (Access is denied)... >>> >> >> Guess not then. >> >> Is it smart for the application to try and delete it's own jar files? >> >> >> p >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org