Two or more Web modules defined in the configuration have the same context root (/bms).
来源:互联网 发布:中万网络销售 编辑:程序博客网 时间:2024/06/02 13:56
tomcat发布和启动时报错,网上的解决方法基本上是进入tomcat\webapps\conf文件夹,找到server.xml中,删除重复的工程部署,比如我的server.xml中出现了两条相关的记录:
<Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>
<Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>
删除一条后在eclipse中启动server,仍会出现两条记录。之后将工程从server中移除,clean之后尝试仍然不行。后来想到我是通过eclipse启动server的,tomcat已经进行了注册,在工作区间(workspace)中果然又发现了一个server.xml,文件路径为:D:\Workspaces\JavaProject\Servers\Apache Tomcat v6.0_3.0-config\server.xml
打开后删除其中的内容:
<Context docBase="D:\Software\servers\tomcat_3.0\webapps\wtpwebapps\myProject_V3.0" path="/bms" reloadable="true" source="org.eclipse.jst.jee.server:myProject_V3.0"/>
就可以了。
总结得到如果使用tomcat直接启动工程,出现上述问题需要修改tomcat\webapps\conf\server.xml,如果使用eclipse启动,就需要首先检查ecplise内部的配置信息了。
- Two or more Web modules defined in the configuration have the same context root (/bms).
- two or more web modules defined in the configuration have the same context root解决方案
- two or more web modules defined in the configuration have the same context root(/项目名)。
- Two or more Web modules defined in the configuration have the same context root (/ecsr).
- idea 错误 Two modules in a project cannot share the same content root
- display two or more logcat filters at the same time in Android Studio
- Two classes have the same XML type
- Overload : Allows 2 or more routines to have the same name
- Two classes have the same XML type name 排错
- WCF分布式开发常见错误解决(7):System.InvalidOperationException,Cannot have two operations in the same contract
- find the two same numbers in 1 million random numbers
- The import org.junit.Test conflicts with a type defined in the same file
- The import java.util.Collection conflicts with a type defined in the same file
- The import java.util.TreeSet conflicts with a type defined in the same file
- The import org.junit.Test conflicts with a type defined in the same file报错
- How to compare the differences of the same file in the two nodes
- JS两栏等高:Javascript set two columns to have the same height
- How to Have Two Versions of the Same App on Your Device
- UE 高亮 一个或多个关键字的方法
- Java对象序列化原理以及Serializable接口
- Eclipse快捷键大全(转载)
- android preference介绍
- SecureCRT&SecureFX_v7.2.5_x86&x64_build_524 破解安装教程
- Two or more Web modules defined in the configuration have the same context root (/bms).
- 关于UIView的autoresizingMask属性的研究
- Linux内核zImage\Image\uImage之区别及uImage的制作
- 类 QQ登入界面的 布局,防登入按钮被覆盖
- shareSDK
- Unity3D 开发之shader教程(浅谈光照之漫反射diffuse)
- c++之指针作为函数参数传递的问题
- 2dx学习笔记-----类型转换(CCstring int string char UTF-8互转)
- js实现链式调用及回调