users@glassfish.java.net

sun-web.xml error-url attribute not working for 404?

From: Alex Sherwin <alex.sherwin_at_acadiasoft.com>
Date: Thu, 13 Nov 2008 16:57:07 -0500

I've got a simple WAR (deployed inside an EAR) that is serving up some
Jersey web services.

I'm trying to do this:

<sun-web-app error-url="error.xml">

Where error.xml is a file in the root of the WAR. This error.xml is the
only file in the WAR itself, other than the sun-web.xml and web.xml in the
WEB-INF dir (the Jersey Resource classes are being served up from inside a
lib from the EAR that owns this WAR).

Any ideas? Ideally I would like to capture all requests that my web
services don't match so I can serve up a specific error XML structure

Alex Sherwin
alex.sherwin_at_acadiasoft.com