web項目發布時出現Deployment failure on Tomcat 7.x.

來源:互聯網
上載者:User

標籤:myeclipse   tomcat   deployment failure   

在centos 6.5發布一個web項目的時候出現了Deployment failure on Tomcat 7.x. Could not copy all resource to /usr/local/apache-tomcat-7.0.52/webapps/webapps/UserManager.if a file is locked ,you can wait until the lock times out to redeploy ,or stop the sever and redeploy,ot manually remove the redeployment at /usr/local/apache-7.0.52/webapps/UserManager

    這個錯誤出現後我的第一感覺是可能是tomcat檔案的許可權問題(tomcat所屬組和使用者都是root),然後跑去把tomcat檔案夾裡的webapps檔案夾都給了w許可權。之後在myeclipse上發布,錯誤依然在

    無奈之舉還是fq找答案,幾乎一無所獲,最後還是在度娘那裡找到了好多這種錯誤,方法一般就是     項目——>build path——>configure build path——>java build path,查看libraries,看到有驚嘆號的就把它移除,搞定!

    But,這個方法不頂用啊,我的根本就沒有錯,最後找到我的tomcat目錄,查看了一下檔案夾許可權,果斷su ,然後chmod -R 777 , 因為是自己學慣用的,所以許可權全給了,,,重新發布下,成功了了!

本文出自 “草原狼” 部落格,請務必保留此出處http://falcon1106.blog.51cto.com/6638492/1545393

web項目發布時出現Deployment failure on Tomcat 7.x.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.