Setting property 'source' to 'org. Eclipse. JST. Jee. SERVER: webproject' did not

Source: Internet
Author: User

After Tomcat is started, a red warning is displayed:

[Setpropertiesrule] {server/service/engine/host/context} setting property 'source' to 'org. Eclipse. JST. Jee. SERVER: webproject' did not find a matching property.

This is because in eclipse, when we deploy a web project through tomcat, Tomcat's configuration file server. XML will automatically generate a configuration information about the web project, similar to the following:

XML Code
View plaincopy to clipboardprint?
<Context docbase = "webpoject" Path = "/webproject" reloadable = "true" Source = "org. Eclipse. JST. Jee. SERVER: webproject"/>
<Context docbase = "webpoject" Path = "/webproject" reloadable = "true" Source = "org. Eclipse. JST. Jee. SERVER: webproject"/>
By default, the context element of server. XML does not support the attribute named source, so a warning is issued.

Solution: Disable tomcat, double-click the Tomcat server under eclipse, and find the server options option on the Tomcat server at localhost page, select the Options "Publish modual contexts to separat XML files", CTR + S, and start Tomcat

 

 

 

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.