When trying to deploy Community Connectors on Tomcat, you may receive the following error message:
SEVERE [localhost-startStop-2] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:org.apache.catalina.LifecycleException: Failed to start component[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CommunityConnectors]][…]Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] 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.[…]
This error is occurring because of conflicting web-fragments' names.
To resolve this issue, you are required to use absolute ordering of deployment descriptors. To do that, follow these steps:
CommunityConnectors.warfile under Webapps. Leave the unpacked CommunityConnectors folder.
/Webapps/CommunityConnectors/WEB-INF/web.xml.
</display-name>closed tag, add the line following line:
<absolute-ordering />