Deployment failure on JBoss 4.x. Could not copy all resources to E:/jboss/server/default/deploy/xxx.war. 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:/jboss/server/default/deploy/xxx.war
錯誤原因:項目中有新的lib包未導入,在項目--Java Build Path中導入即可。
在用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庫中註冊,所以纔出現以上的問題!
解決方法:在工程的屬性中加入這個包就可以了。