在启动项目的时候,不能重新发布项目,tomcat不可以正常启动,并且有下面的错误提示:
Could not publish server configuration for JKGL2. Multiple Contexts have a path of "/JKGL2".
解决方案:
在你的tomcat的server.xml文件中,你找<Context docBase="JKGL2" path="/JKGL2" reloadable="true" source="org.eclipse.jst.jee.server:JKGL2"/>
这个配置只可以存在一个在server.xml中,如果有一个以上,请删除其余的,这样就可以重新发布项目,tomcat也就可以重新启动了。