Shanmugaraja G
Shanmugaraja G

Reputation: 2778

Eclipse - Could not publish server configuration for Tomcat8.0 server at localhost

I have created some example web service methods and trying to publish in my localhost with Tomcat v8.0. I use Eclipse Java EE IDE for Web Developers with Mars version 4.5.0. I configured the server Tomcat v8.0. I got the configured server in Eclipe's Servers list. I Start the server. But Eclipse prompts saying

 Publishing to tomcat v8.0 Server at localhost..." has encountered a problem.

And the error details shows that Multiple context have a path for /HelloWorldServlet and /com.vogeila.jersy.first. These are the servlet projects I created in my workspace.

You can refer this screen shot: enter image description here

I followed this answer.

"Server Tomcat v7.0 Server at localhost failed to start" without stack trace while it works in terminal

But It didn't work for my case. Share your ideas.

Upvotes: 7

Views: 36061

Answers (2)

gangu
gangu

Reputation: 59

Delete Existing tomcat server... Then add new server.. its work for me

Upvotes: 3

Shanmugaraja G
Shanmugaraja G

Reputation: 2778

The prompted message helped me. The Server.xml file under Servers has multiple entries of <Context> tag. I deleted everything by leaving only one entry. It worked for me. 

Upvotes: 18

Related Questions