Support web.xml Overrides

Description

There are a few cases where it can be handy to be able to define custom servlet configuration on your deployment. Igal's Lucee websocket extension is an example of this as it requires a servlet filter to be present. Expose a mechanism to register servlet filters and their params. Examples:

  • Servlets

  • Servlet mappings

  • Servlet filters

  • Server filter mappings

  • Listeners

  • Context params

  • welcome files (only if not in server.json)

  • error pages (only if not in server.json)

  • mime types

  • session config

Basically anything in the web.xml. For a Adobe/Lucee, it’s not easy nor desirable to directly edit the web.xml that comes in the CF engine war. Provide a second param to Runwar that points to the absolute path of an override web.xml file, which will be parsed and added to the DeploymentInfo after the core web.xml in the war’s WEB-INF.

 

Activity

Show:

Brad Wood July 27, 2021 at 10:39 PM

My CommandBox changes are complete. This ticket should be ready for testing.

Brad Wood July 23, 2021 at 11:00 PM
Edited

Why did you resolve this? This ticket is not complete yet. Remember the “3rd bullet” we discussed in Slack yesterday that is yet to be done?

Balbino Aylagas July 8, 2021 at 10:31 PM

pr has been updated for commandbox too

Balbino Aylagas July 8, 2021 at 10:30 PM

pr has been updated

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Assignee

Reporter

Fix versions

Priority

Components

Created July 30, 2019 at 6:23 AM
Updated September 29, 2021 at 8:05 PM
Resolved July 27, 2021 at 10:38 PM