Tomcat部署時報錯Deployment failure on Tomcat 6.x. Could not copy all resources to

Tomcat部署時報錯Could not copy all resources to...

轉自:http://jiake0504.iteye.com/blog/253604

在使用eclipse開發,發佈應用的時候突然無法成功發佈,提示  
 
Deployment failure on Tomcat  6.x. Could not copy all resources to D:\...\webapps\eptInfo. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at D:\....\webapps\eptInfo.  
 
但是我的tomcat服務並沒有啓動.上網搜索之後發現和大家範的是一個毛病,原來工程中我引了一個包,後來這個包被我給刪除了,但是因爲已經發布過這個工程了,所以classpath中就有這個包名了,這樣發佈的時候也會去找這個包但是已經不存在了,所以無copy,  
 
解決辦法:在eclipse的工程中點擊右健選擇properties-->java build path中已經提示了xx.jar不存在,這樣就把這個jar信息從Libraries中刪除即可.  
 
重新發布應用,成功!
<script type="text/javascript"><!-- google_ad_client="pub-1076724771190722" ; /* JE個人博客468x60 */ google_ad_slot="5506163105" ; google_ad_width="468; google_ad_height" = 60; //--> </script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script><script src="http://pagead2.googlesyndication.com/pagead/js/r20110420/r20110415/show_ads_impl.js"></script><script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"></script><script src="http://pagead2.googlesyndication.com/pagead/render_ads.js"></script><script>google_protectAndRun("render_ads.js::google_render_ad", google_handleError, google_render_ad);</script>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章