---
title: "Deployment failure on Tomcat 6.x. "
author: "disablebb"
date: "2012-03-06T17:56:10Z"
tags: []
categories: ["编程语言"]
slug: "deployment-failure-on-tomcat-6-x"
draft: false
lastmod: "2012-03-06T17:56:10Z"
id: 1441832
url: "https://disablebb.iteye.com/blog/1441832"
---

在用MyEclipse6.5做项目时发现这样的问题:

Deployment failure on Tomcat 6.x. Could not copy all resources to E:\\tomcat6\\tomcat6\\webapps\\xxx. 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 E:\\tomcat6\\tomcat6\\webapps\\xxx

后来经过查找问题发现：我在web-inf/lib目录中替换了一个jar包，而这个jar包并没有在lib库中注册，所以才出现以上的问题!

解决方法:在工程的属性中加入这个包就可以了。