The ServletHostExtension currently uses methods like addServletMapping(int host, String mapping, Servlet servlet) so in the things that use this like the Axis2 binding you have to work out things like the host port, eg, see the Axis2ServiceBinding start and stop methods. Could ServletHostExtension add/removeServletMapping be changed to just take a URI and a Servlet and have the ServletHostExtension implementation do the best it can to get the servlet registered at the URI?
...ant