error 400 (instead of 404) if no root web application deployed
Steps to reproduce:
- Make sure JOnAS is launched with no application on the context / i.e., in the default configuration, remove ctxroot.xml from JONAS_BASE/deploy
- Start JOnAS with Tomcat as Web container (development mode, onDemand and versioning on or off; doesn't matter)
- Visit http://localhost:9000/
- Look at the error code the server returns (in Firefox, use HTTPFox for example)
Expected response: an error 404 Actual response: an error 400