Could not publish server configuration for tomcat v8.0 server at localhost. multiple contexts

Could not publish server configuration for tomcat v8.0 server at localhost.
          multiple contexts containing same name /projectname

The server.xml file is corrupted by Eclipse!!! I found out many times with Eclipse, don't be afraid to do some  changes in XML file.

Inside the Eclipse we have Server folder. In that open the server.xml file.

Just search your project name in the form of ['/Project Name'].

Notice How many context tags are there in the same path?

Remove the unwanted context tags.
 Note:
 [If there is three context tags with your project name then delete the two context tags and remaining one will remain there. ]


Comments

Popular posts from this blog

How do i Increase the capacity of the Eclipse Output console?

How to set max connections in mysql?

An internal error occurred during: "Building workspace". Java heap space