To fix XWIKI-16828 (sending a long for the file size) we need Servlet 3.1. This means not working in Tomcat 7 anymore so not before XWiki 12.0 IMO.
Upgrade to Bean Validation 2.0.2
Download issue with attachment > 2GB
XWiki doesn't specify that it requires Servlet API 3.1+