eclipse啟動tomcat時控制台出現類似“did not find a matching property”錯誤

來源:互聯網
上載者:User

解決方案1:

建立一個相同的tomcat伺服器,然後將應用添加到該伺服器下,再啟動,應該就沒有問題了(出現的問題是有的目錄不存在)

解決方案2:

Software

  • apache-tomcat-6.0.18
  • eclipse-jee-ganymede-SR1-win32.zip(Version: 3.4.1,Build id: M20080911-1700)

Step:

  • New -> Web -> Dynamic Web Project (Target Runtime:Apache Tomcat 6.0;Dynamic Web Module Version:2.5)
  • Window -> Show View -> Servers, New-> Server, Add and Remove Projects...,Start (Server)

Warning:

  • [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:demo' did not find a matching property.

Solution:

  1. Server's Properties -> General -> Location = /Servers/Tomcat v6.0 Server at localhost.server;

  2. Project Explorer -> Servers -> Tomcat v6.0 Server at localhost.server, double click to open it.

  3. Server Options -> Check "Publish module contexts to separate XML files".

Explaination:

  • Tomcat of previous version doesn't support the "source" attribute in the "Context" node of "server.xml" file.

Result:

  • A separate XML file named "demo.xml" was created  in the "$server path$\conf\Catalina\localhost\".

聯繫我們

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