When eclipse starts tomcat, the console prompts an error similar to "did not find a matching property ".

Source: Internet
Author: User

Solution 1:

Create an identical Tomcat server, add the application to the server, and start the server. The problem is that some directories do not exist)

Solution 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 \".
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.