Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts have a path of "/tm".

Could not publish server configuration for Tomcat v6.0 Server at localhost. Multiple Contexts have a path of "/tm".

Tomcat startup error

 

 This error is more of the same "/ tm" means

First of all the nature of the problem is that we have the same name multiple projects, why do we have multiple projects the same name, in fact, usually we remove the previous project, then put it back into the lead when the eclipse delete previous projects caused by incomplete previous projects under the "Servers" inside "server.xml" file <Context> there our previous application.

 

 So a very simple solution is to delete a Tomcat within which the "server.xml" of <Context> two of the same name.

Another way individuals feel more unscientific, but it can be resolved. Delete "Servers" file, then re-configure your Tomcat server in eclipse, the default configuration is to select the new "Servers" files, basically solve the problem. However, this may cause another problem, it is your project might somehow on the error, and this time you click to select your project, right "Build path" to remove the previous Tomcat (though it is nothing with our new different from), and then we re Tomcat into them, refresh, you can succeed!
 

 

Guess you like

Origin www.cnblogs.com/cuixiaomeng/p/11236820.html