Java Eclipse - 无法在本地主机上发布 Tomcat8.0 服务器的服务器配置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34707243/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse - Could not publish server configuration for Tomcat8.0 server at localhost
提问by Shanmugaraja G
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
我创建了一些示例 Web 服务方法,并尝试使用 Tomcat v8.0 在我的本地主机中发布。我使用 Eclipse Java EE IDE for Web Developers 和 Mars 版本 4.5.0。我配置了服务器Tomcat v8.0。我在 Eclipe 的服务器列表中得到了配置的服务器。我启动服务器。但是Eclipse提示说
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.
而错误的详细信息显示,多个上下文有一个路径/HelloWorldServlet
和/com.vogeila.jersy.first
。这些是我在工作区中创建的 servlet 项目。
You can refer this screen shot:
I followed this answer.
我遵循了这个答案。
“本地主机上的服务器 Tomcat v7.0 服务器无法启动”在终端中工作时没有堆栈跟踪
But It didn't work for my case. Share your ideas.
但这对我的情况不起作用。分享您的想法。
回答by Shanmugaraja G
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.?
提示信息帮助了我。下面的Server.xml
文件Servers
有多个<Context>
标签条目。我只留下一个条目就删除了所有内容。它对我有用。?
回答by gangu
Delete Existing tomcat server... Then add new server.. its work for me
删除现有的 tomcat 服务器...然后添加新服务器...它对我有用