When using Tomcat8.0 in Eclipse, there was a
Could not publish server configuration for Tomcat v8.0 server at localhost.
Multiple contexts has a path of ""
Error.
There are two ways to solve the problem, as follows
If you are using the Eclipse Tomcat plugin, you will need to find the following files in your workspace:
${woskspace}/.metadata\.plugins\org.eclipse.wst.server.cor\e\tmp0\conf\server.xml file.
if Tomcat is a separate server, you will need to find the installation directory for Tomcat:
${tomcat_home}\apache-tomcat-6.0.37\conf\server.xml
But I haven't tried it since, maybe because it's the 8.0 version.
Here's my workaround:
When the Tomcat service is established, Eclipse automatically generates a servers project. In this project, locate the service folder for your deployment project. Under this folder there is a "server.xml" file, open this file, delete the corresponding project in the context node can be.
This article is from the "heterosexual phobia" blog, please be sure to keep this source http://twoxzi.blog.51cto.com/8613587/1626234
Could not publish server appears when using Tomcat8.0 in eclipse ... Error