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.

jams

I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
side effects of cogniflex

This is truly a great read

This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!.
male jockstraps

jams

nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this!
human growth hormone replacement

jams

i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me.
www.marketing1on1.com

vapemilk

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks
Calgary furniture movers

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

jams

You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing.
rehab facilities in florida

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

affdaf

Thanks for showing this awesome post APP download and click and click and click and click and click

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.

Awesome article, it was

Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome! Recruiter in Hospitality

jackman10

Pleasant to be going by your web journal once more, it has been months for me. Well this article i've been sat tight for so long. I require this article to finish my task in the school, and it has same theme with your article. Much obliged, incredible offer. Loftplan

jams

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
geniuxbrainformula

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

Thanks for sharing this

Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people..
Language of Desire Review

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

David

Fantastic blog page with all the terrific good items not to mention I’m absolutely sure this will be vastly advantageous. Anthony Dohrmann

jhonwattson

At blogs on-line, I enjoy analyzing your business opportunity quite possibly the most; one provide you with a lot of tips within a small-scale chunk. My group is hunting for and even considering the fact that you now have the core designed for tutorial authoring, As i calculated you may choose to time all of us with the best guidance. On earth do you allow? artemisinin

jams

I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
marketing1on1.com/buy-backlinks/

jhonwattson

As i browse your site at working on ratings and even As i at present believe as a result pushed. As i is marketed their employment you need to do an important for one individual authoring small business and even And also evading the application. Reckon at present, considering the opinion one awarded all of us, We can give it a shot. Disrupt Trading

jams

I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
Price comparison

jams

Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.
water carpet damage

jhonwattson

I just now identified applying indicate the item all over again. Advocate whatsoever I need to to make sure anticipation as a result of honest you will keep on being for the purpose of featuring that excellent organize. joint pain relief codes reviews

Jual Laptop Notebook PC HP Lenovo Printer Tinta Toner Epson Mura

Everything you comprehended will be proper, comprehend that you must crack the particular connection among present concrete floor and also fresh. You need to be cautious once you handle the particular concrete floor on the surfaces, due to the fact normally there exists a possiblity to crack. It will always be far better to obtain the aid of your specialist. Jual Laptop Murah

jhonwattson

I saw working with exhibit them just as before. Would suggest anything Needed to discover aspiration by impending you might keep with regards to expressing the following marvelous offer. aaadebtconsolidationloan.com

kavin

I just gazed all the way up your website just because May very well been told such a lot of on the subject of a items. hand reading

Alex

Fantastic web page you could have in this article, a whole lot trendy facts!.. Homepage

JAck

twitter followers On that website page, you'll see your description, why not read through this. buy youtube likes

Promptly this url might

Promptly this url might unquestionably end up legendary in between every writing many people, due to the meticulous articles and reviews and ratings. vitapulse

Document are only hoping to

Document are only hoping to advise you i only just go and visit your blog post and additionally Document discover it particularly unique and additionally revealing.. buygeniux.wordpress.com

That might performance

That might performance short-term, having said that it’s not much of a simple long-term respond to to get gentlemen who want to possibly be because of this 1 exceptional women that they can’t discontinue taking into account. landlord tenant management software

wow what a great post is

wow what a great post is this... thanks for sharing boss, keep share these valuable content. heaters cartridge

Aadi

Your site has grown a one-stop find as much as possible tutorial authoring. Thanks for your time in the very good get the job done. As i tested the online sites one preferred and even On the net which will best-dissertation.pores and skin look though. Ones own get the job done is kind of exemplary. mongolian translation

jackman10

I am extremely delighted in for this online journal. Its an educational subject. It help me all that much to take care of a few issues. Its chance are so incredible and working style so fast. Moving Trucks

Document are only hoping to

Document are only hoping to advise you i only just go and visit your blog post and additionally Document discover it particularly unique and additionally revealing.. mattress stores los angeles

One encourage plenty of

One encourage plenty of online sites onto your web log My group is allowed to remain thinking about how i ever in your life discover groundwork at may. search engine marketing agency

That might performance

That might performance short-term, having said that it’s not much of a simple long-term respond to to get gentlemen who want to possibly be because of this 1 exceptional women that they can’t discontinue taking into account. crepe correcting body complex

You should keep on this kind

You should keep on this kind of fantastic perform and also My partner and i enjoy a lot more of one's great web sites. girlfriend activation system explained

I am continually amazed by

I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. mouse control

David

Fantastic web page you could have in this article, a whole lot trendy facts!.. college papers format

t a fantabu

What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.
alcohol drug

This can be neat article

This can be neat article along with i like to to learn to read this specific article. your site can be amazing so you get very good staff members as part of your web site. wonderful expressing continue the good work.
Women’s Clothing

so true.its very interesting

so true.its very interesting website.
Strong Women Quotes

JAMS

I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight.
IT Consultant

You should keep on this kind

You should keep on this kind of fantastic perform and also My partner and i enjoy a lot more of one's great web sites. Luxury Homes in Miami for sale

Schöne Wimpernverlängerung für den vollendet ausdrucksstarken Bl

Bei uns bekommen Sie natürlich schöne Wimpern, mit einem hervorragenden Tragekomfort. INFINI BEAUTÉ Cosmetic Institut Berlin macht es möglich. Sei atemberaubend schön jeder Tag. Mascara und Wimpernzange benötigen sie nicht mehr. Wimpernverlängerung für bis zu 60 Tage. Wimpernverlängerung Berlin

We've certainly not after go

We've certainly not after go through a chunk that will details precisely what I truly do together with your the latest web site really does. Thanks a lot to the honor! Seattle family law mediation

Post new comment

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