TomcatExpert

WAR Files Not Completely Extracted on Deployment on Windows

posted by SpringSource on May 26, 2010 07:15 AM

File locking in Windows may prevent the directory from being deleted.

File locking on Windows is different than file locking on Unix in that on Windows a file can be locked on read. If you are redeploying a second version of an already deployed web application, you may see something like the following web application:

 webapps
- myapp.war
- myapp

If myapp.war version 2 were then hot deployed, Tomcat will first try to delete the 'myapp' directory. This will fail if any file is being read there, such as a JAR file. So what happens is that everything except WEB-INF/<parts> gets deleted.

To the user this may seem as the expanding of the new war file failed, but it was the deletion of the old directory that failed.

For hot deploying on Windows, there are two flags antiJARLocking and antiResourceLocking that can be used to mitigate these scenarios. There is more information on these flags at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html.  

NOTE: Locked JARs are usually a result of library or application bugs and also represent memory leaks. In addition to this workaround, those areas should be investigated. Tomcat 6.0.24 onwards includes memory leak protection and detection to mitigate some of the common causes of these memory leaks, so an upgrade may be advisable.

For more than 10 years, SpringSource employees have been supporting Apache technologies, with unparalleled experience and commitment to the Apache Software Foundation. More than 400 of the Fortune 500 count on SpringSource to support their mission-critical business applications. Leaders of the Apache Software Foundation, including Board Members, work at SpringSource and dedicate a significant amount of time further developing the Apache Tomcat open source project. Over the last 2 years, 95% of the issues fixed in the Apache Tomcat project were fixed by SpringSource engineers. For more information on how SpringSource can help your enterprise, see the SpringSource website, or call 800/444-1935.

Comments

Convey basically intends to

Convey basically intends to actualize it, or update your adaptation of xp to vista. Write my assignment for me - From what you said, I figure they were looking at updating on an expansive scale, for occasion various machines in a business system environment. Organization is a typical term to use in that kind of circumstance.

so good

There is a high chance that you might end up deleting your files while you are toggling with such options. So always make sure that you are backed up before attempting something like this each time on your own. pest control sprayers

GAME HACK

dicas dragon city I should say only that its awesome! The blog is informational and always produce amazing things. gratis clash of clans juwelen

Partgez Des Photos Bonne

Partgez Des Photos Bonne Année 2016 avec Ta Famille, Tes collegues Ou Ami(e)s est la meilleure methode de Partagez Votre joie, délice et votre Accueil de la nouvel an 2016
BONNE ET HEUREUSE ANNÉE 2016
SOIRÉE NOUVEL AN 2016
CARTE DE BONNE ANNÉE 2016
Auguri Di Buon Anno 2016
Happy New Year 2016

Partagez Des Photos Bonne Année 2016 avec Ta Famille, Tes collegues Ou Ami(e)s est la meilleure methode de Partagez Votre joie, délice et votre Accueil de la nouvel an 2016

how to get more

how to get more followers Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. buy real youtube views and comments

Education

Sometimes windows will face the problems in which WAR files also included and sometimes it may be resolved easily or sometimes it's corrupted and not working any more best essay uk.

Education

There is a high college essay writing company possibility that you power end up delete your records as you are toggling with such option. So everlastingly make sure that you are back up previous to attempt amazing like this every time on your possess.

college essay writing company

This post is really

This post is really informative and from this post I am able to know the reason for why WAR files not completely extracted on deployment on Windows. I found that it is very much useful to me. Thank you so much for sharing this post here! clip in man bun

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.