Reputation: 2778
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:
I followed this answer.
But It didn't work for my case. Share your ideas.
Upvotes: 7
Views: 36061
Reputation: 59
Delete Existing tomcat server... Then add new server.. its work for me
Upvotes: 3
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