Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 451
Shanmugaraja G Avatar asked Jan 10 '16 15:01

Shanmugaraja G


People also ask

Could not publish server configuration for Tomcat v7 0 server at localhost multiple contexts have a path of?

Could not publish server configuration for Tomcat v7. 0 Server at localhost. Multiple Contexts have a path of “/MyProject”. We can solve this problem either from Eclipse IDE itself or by editing a file outside of Eclipse.

How can I add Tomcat server to eclipse?

Installing server runtime Start the Eclipse WTP workbench. Open Window -> Preferences -> Server -> Installed Runtimes to create a Tomcat installed runtime. Click on Add... to open the New Server Runtime dialog, then select your runtime under Apache (Apache Tomcat v5. 0 in this example):


1 Answers

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. 

like image 59
Shanmugaraja G Avatar answered Sep 28 '22 03:09

Shanmugaraja G