In undertow we do it differently, but for current work I introduced ServletBuilder#setForceInit(true) which for jbossweb impl still calls wrapper.allocate()