eclipse tomcat add and remove工程異常

來源:互聯網
上載者:User

 

1  eclipse匯入工程後,右擊server add and remove工程時,there are no resource:

解決方案:右擊工程->單擊property->選擇project facet->勾選dynamic web project (注意web module 版本,不同版本的tomcat支援的web module不一樣。)

tomcat6隻能用2.5 否則回報2的錯

2  布署項目的時候出現Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules錯誤;解決方案如下:

在工作空間項目下的.settings下面,有個名為org.eclipse.wst.common.project.facet.core.xml的檔案,裡面配置有各種版本資訊:

 

<?xml version="1.0" encoding="UTF-8"?><faceted-project><runtime name="Apache Tomcat v5.5"/><fixed facet="jst.web"/><fixed facet="jst.java"/><installed facet="jst.java" version="5.0"/><installed facet="jst.web" version="3.0"/><installed facet="wst.jsdt.web" version="1.0"/></faceted-project>

 

像上面錯誤,可以下載Tomcat 7。0解決,也可以把<installed facet="jst.web" version="3.0"/> 改成低些的版本version="2.5"

其他連結:

https://www.cnblogs.com/lbb4511/p/5520944.html

http://blog.csdn.net/u011008029/article/details/54618382

http://blog.csdn.net/zpf336/article/details/43834205




聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.