Context with path “/jspDemo” conflicts with another Context with path “/JspDemo”.
修改
如果是使用的eclipse tomcat 插件,需要在你的工作空间 找到如下文件:.metadata.plugins\org.eclipse.wst.server.cor\e\tmp0\conf\server.xml文件。
如果是使用自己安装的tomcat服务器就需要找Tomcat的安装目录下的\conf\server.xml
我的是使用自己安装的
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t "%r" %s %b" prefix="localhost_access_log" suffix=".txt"/>
<Context docBase="D:\Program Files (x86)\Tomcat 8.0\me-webapps\Program Files (x86)\Tomcat 8.0\me-webapps\JspDemo" path="/JspDemo" reloadable="false" source="org.eclipse.jst.jee.server:JspDemo"/>
<Context docBase="D:\Program Files (x86)\Tomcat 8.0\me-webapps\myWeb" path="/myWeb" reloadable="false" source="org.eclipse.jst.jee.server:myWeb"/>
<Context docBase="jspDemo" path="/jspDemo" reloadable="false" source="org.eclipse.jst.jee.server:jspDemo"/></Host>
可以看到有三个Context
修改只保留一个重启tomcat就可以了
时间: 2024-12-25 13:03:23