424284 Identify conflicts in logging when error "Multiple servlets map to {pathspec}" occurs

This commit is contained in:
Jan Bartel 2013-12-19 10:05:46 +11:00
parent e99ad50a90
commit 9e2d0a33d6
1 changed files with 1 additions and 1 deletions

View File

@ -1432,7 +1432,7 @@ public class ServletHandler extends ScopedHandler
{
//existing candidate isn't a default, if the one we're looking at isn't a default either, then its an error
if (!mapping.isDefault())
throw new IllegalStateException("Multiple servlets map to path: "+pathSpec);
throw new IllegalStateException("Multiple servlets map to path: "+pathSpec+": "+finalMapping.getServletName()+","+mapping.getServletName());
}
}
}