用Myeclipse部署时,出现下面的错误: Could not copy all resources to D:/............. 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:/.............
去网上查了一下,有两种解决方案:
1、重启weblogic服务,重启myeclipse,直到重启机器。(这个一般没效果)
2、检查项目加载的lib或者在相关包里,发现有一个已经被我删除,但是在项目中没有remove掉,在项目-属性-java build path-libraries里面,remove掉这个lib。然后重新部署,OK。(在工程属性中的BUILD PAth里 去掉带叹号的JAR包就好了。)