On Thursday 14 April 2011 01:30 PM, Remy Maucherat wrote:
On Thu, 2011-04-14 at 12:55 +0530, Jaikiran Pai wrote:
> I was testing the lastest AS7 upstream and am noticing an issue with
> web application context handling. Just start the server and access any
> non-existent URL like
http://localhost:8080/nonexistentapp. It just
> renders a blank page. Shouldn't it show up a 404 error page like it
> does in previous versions of JBoss AS?
If there's nothing to map, you get a 404. Your browser then does not
feel like it has to display the status code to you.
While we are at this - in
previous versions we were able to enable a
Access valve to log the accessed URL and the return HTTP code. Is this
possible in AS7? If yes, how and where do I enable this (just to make
sure it is returning 404)?
-Jaikiran
For whatever reason, just like it is a good idea to allow users to
package whatever JAR they think is useful in their war, it is apparently
needed to have hardcoded HTML generation with embedded images to present
some hello page.