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