7

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.

Community
  • 1
  • 1
Shanmugaraja G
  • 2,778
  • 4
  • 31
  • 47

2 Answers2

18

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. 

Shanmugaraja G
  • 2,778
  • 4
  • 31
  • 47
3

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

gangu
  • 59
  • 3