WTP加载Web Project失败解决 WTP Failed to Load Project with Tomcat Bug

The more you use a program, the more bugs you will find in it. This is the case with Eclipse, WTP in particular. If the application server (I use Tomcat) starts and yet the web module is not loaded, you should:

  • clean the project and restart Eclipse – this works most of the time.

If restarting does not work, try the following:

  1. Back up your projects in case you mass things up
  2. Delete the project (do NOT delete the underlying files though)
  3. “Import existing project”, i.e., the project just deleted.
  4. Run the project on server again and it should work as a charm.

Irrelevant warning message

The following warning message is irrelevant to the problem and you should not attempt to resolve it (I’d rather keep the warning mesg than remove it by switching ‘Publish module context to separate XML files’on.):

以下错误并不相干,它的存在不影响运行,请忽略它。网络上有人试图通过’Publish module context to separate XML files’来消除这个错误是没有必要的,只需ignore它:

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