[SERVLET_SPEC-49] error-code and error-exception are optional in error-page element Created: 18/Oct/12  Updated: 09/Jan/13  Resolved: 09/Jan/13

Status: Resolved
Project: servlet-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: janbartel Assignee: Shing Wai Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

See:

https://issues.apache.org/bugzilla/show_bug.cgi?id=52135
http://stackoverflow.com/questions/12854768/jetty-servlet-3-0-and-error-page

It appears the jsr315 spec group may have wanted to make a new feature of having error-pages without defining a code or exception name. Unfortunately there is no text about this in the 3.0 final specification. See section 10.9.2 Error Pages. This is not mentioned.

Nor is there any comment in the web-common.xsd schema.

The only information on this feature can be found on a blog from someone from oracle:
https://blogs.oracle.com/arungupta/entry/totd_136_default_error_page

If this is indeed a new feature that was added in servlet 3.0, this must be documented in the specification.

Jan



 Comments   
Comment by Shing Wai Chan [ 09/Jan/13 ]

We need to update the following:

  • web-common schema
  • section 14.4 No. 15, p.157 in Spec
  • section 10.9.2, p.108 in Spec
Comment by Shing Wai Chan [ 09/Jan/13 ]

The spec is updated as follows:
Sending applications.fm
Sending deployment.fm
Sending status.fm
Transmitting file data ...
Committed revision 64.

Concerning the schema, I have confirmed that it has been updated correctly in Servlet 3.0. We only need to add additional comments there.

Comment by Shing Wai Chan [ 09/Jan/13 ]

fix schemas:
Sending src/main/resources/glassfish/lib/schemas/web-common_3_1.xsd
Transmitting file data .
Committed revision 58247.

Sending javaee7/src/web-common_3_1.xsds
Transmitting file data .
Committed revision 58248.

Generated at Sun Apr 19 05:30:17 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.