A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法

A context path must either be an empty string or start with a '/' and do not end with a '/'
上下文路径必须是一个空字符串,或者以“/”开头,不要以“/”结尾。

原因:tomcat的server.xml中添加了多余的无效的context标签,将其删除即可。

举例:
我出现的问题是:
十一月 23, 2016 5:17:05 下午 org.apache.catalina.core.StandardContext setPath
警告: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [Struts2_071_ActionParamInput] does not meet these criteria and has been changed to [/Struts2_071_ActionParamInput]

原来我的tomcat的server.xml文件中出现了这一段(之前手动加入的,没有删除)
<Context path="Struts2_071_ActionParamInput" docBase="G:\tomcat-7\webapps\Struts2_071_ActionParamInput\WebRoot" reloadable="true"/>
将其删除即可。
提示:server.xml在tomcat的config目录下。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值