Did you know you can update the web.xml files without rebuilding/redeploying the maximo.ear?
Belinda Fuller 2700006M39 Comment (1) Visits (20204)
The instructions for enabling security created by my colleague included in the blog entry link below describe the steps necessary to enable application server security including modifications to web.xml files for the associated war modules, updates to system properties, rebu
The question that arose is, can you hot deploy changes to a web.xml for an associated war module in order to enable application server security on them without the need to rebuild/redeploy the maximo.ear?
The answer to this question is Yes, however it must not be used for production environments. This process must only be used in development and test enviornments to avoid problems with consistency throughout the enviornment.
While working on an issue recently with a customer, I discovered when using the hot deployment instructions from the WebSphere Application Server knowledge center here - http
BMXAA0026E - The action could not be performed because the application server security is enabled. Proper authorization is required to perform this action. Report this error to your system administrator.
After researching this issue, I realized that the changes to web.xml files were not being picked up. Further, I could see that the web module descriptors within the WAS console were still showing the original web.xml contents. This is because the web.xml files are read from a different location on the server. The descriptor contents displayed within the WebSphere console come from the web.xml files stored under the deployment manager. The web.xml files need to be updated on each node as well as the deployment manager for the changes to be in sync between all nodes and the deployment manager.
Where many changes to properties files, jsp files, etc will be picked up from this location after a server restart, this location is NOT the correct location to update your web.xml files:
The locations for the web.xml files are here. They are not picked up from the location above:
When updating the web.xml files associated with your war applications in the locations to enable application server security or for any other reason, remember to restart both the application server as well as the deployment manager.
So, the good news is, you can enable application server security without performing a rebuild and redeployment of the maximo.ear.