46

When trying to run my app with eclipse/linux on apache tomcat on my local host the application runs fine but, I got the following warning:

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

any ideas what does this warning means, how to resolve it?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498

2 Answers2

59

Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out.

First of all this is a warning and not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source attribute from context.

This source attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml file of Tomcat to match the running application to a project in workspace.

Tomcat generates a warning for every unknown markup in the server.xml (i.e. the source attribute) and this is the source of the warning. You can safely ignore it.

Chris
  • 7,864
  • 1
  • 27
  • 38
  • 25
    It is misleading to say that you can safely ignore it, unless the app is actually loading. This may be the first symptom of what ultimately causes the app not to be loaded. – CodeMed Apr 27 '15 at 19:47
  • 1
    @CodeMed: it really is quite common and harmless. – Priidu Neemre Aug 03 '15 at 16:14
27

You can change the eclipse tomcat server configuration. Open the server view, double click on you server to open server configuration. Then click to activate "Publish module contents to separate XML files". Finally, restart your server, the message must disappear.

Source: http://www.albeesonline.com/blog/2008/11/29/warning-setpropertiesruleserverserviceenginehostcontext-setting-property/

Duff
  • 852
  • 12
  • 16
  • 6
    This just delays the warning. It then re-appears later when tomcat deploys the configuration descriptor xml from \workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost – Adam Sep 19 '14 at 16:31
  • Your awsome, it worked – Bhaskara Arani Feb 26 '18 at 11:52