tomcat
tomcat copied to clipboard
List duplicate locations when failing a deploy due to duplicated fragment names
For complex deployments with many dependencies, it's easy to lose track of exactly which ones are causing trouble. Currently, you need to look inside each of your dependency jars in order to figure out what's wrong - I think this change is a harmless quality-of-life improvement, and that it should apply cleanly to all three release branches.
Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [some-popular-library] 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.
(Duplicates found in: [[file:/home/mads/dev/tomcat/output/build/webapps/madswar/WEB-INF/lib/popular-lib-duplicate.jar, file:/home/mads/dev/tomcat/output/build/webapps/madswar/WEB-INF/lib/popular-lib.jar]]).