---
title: "Tomcat部署时报错Could not copy all resources to... "
author: "harbey"
date: "2009-07-03T13:57:57Z"
tags: []
slug: "tomcat-could-not-copy-all-resources-to"
draft: false
lastmod: "2009-07-03T13:57:57Z"
id: 419558
url: "https://harbey.iteye.com/blog/419558"
---

转自: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中删除即可.   
  
重新发布应用,成功!