Update to WebApplication.register to throw better exceptions when ClassLoader is unable to find the resource.