Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 3.3
-
Component/s: Framework, ICE-Components
-
Labels:None
-
Environment:Servlet 3, Compat Resource Servlet
-
Assignee Priority:P3
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
The Compat Resource Servlet uses specific servlet-mappings that must be configured to set values. As such, it's an ideal candidate for using the Servlet 3 @WebServlet annotation, to allow for automatic configuration.
Now, in a servlet 2.5 container, that annotation will not exist, so as an implementation detail, we may need to create a sub-class that contains the actual annotation, that otherwise would not be classloaded. And we should test the scenario where the web.xml explicitly configures for it along with the annotation, to ensure no odd duplicate definition problems arise.
Now, in a servlet 2.5 container, that annotation will not exist, so as an implementation detail, we may need to create a sub-class that contains the actual annotation, that otherwise would not be classloaded. And we should test the scenario where the web.xml explicitly configures for it along with the annotation, to ensure no odd duplicate definition problems arise.
Implemented auto-registration of CompatResourceServlet in Servlet 3.0 compliant servers (as described above). Tested successfully the case where the servlet is registered using annotations and in web.xml.
Modified showcase's web.xml to use servlet 3.0 XML schema and removed the configuration for CompatResourceSErvlet.