1.通过run as ->maven build->生成war包时。没有提前清理target文件夹,导致多余的文件打入了war包。部署Tomcat后抛异常。
2.有时项目改好后,在7版本的Tomcat中总是运行报错。启动一个新的8版本的Tomcat,运行正常。所以,当项目部署后总是跑不起来,要考虑下是不是运行环境有问题了,需要重新搭下环境。
报错举例:
More than one fragment with the name [org_apache_tomcat_websocket] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.