使用Tomcat在Eclipse中运行Web服务的路径错误相同的多个上下文 [英] Multiple contexts with the same path error running web service in Eclipse using Tomcat

查看:2152
本文介绍了使用Tomcat在Eclipse中运行Web服务的路径错误相同的多个上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是当我使用Eclipse创建我的第一个Axis2 Web服务时遇到的错误。在我写这个类之后,我用Apache Axis2创建了Web服务。当我点击eclipse中的启动服务器按钮时,会出现一条错误消息:

This is the error that I got when I created my first Axis2 web service using Eclipse. After I wrote the class, I created the web service with Apache Axis2. When I click the start server button in eclipse it gives an error message:


无法为Tomcat v6.0 Server发布服务器配置
localhost。

多个上下文的路径为/ FirstApache。

FirstApache是​​我之前创建的动态Web项目。我从Web服务向导中的配置部分选择了正确的Web项目。

FirstApache is the dynamic web project that I created before. I selected the correct web project from the configuration part in the web service wizard.

我如何解决这个问题?

推荐答案

搜索 server.xml 文件,并检查您的< Context> 标签,可能有相同路径的多个定义。删除重复项,它应该适用于您。

Search for the server.xml file and check your <Context> tags, probably there are multiple definitions for the same path. Remove the duplicates and it should work for you.

查看这里的答案

提示:

自 ;上下文> 可能在同一行,真的很远。

Do an autoformat (control + shift + f) since the <Context> may be on the same line, really far away from each other.

这篇关于使用Tomcat在Eclipse中运行Web服务的路径错误相同的多个上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆