Undeploying an application containing sun-resources.xml does not remove jdbc
resources and connection pools.
The issue is due to error in PostResDeletionPhase. It tries to get resources in
sun-resources.xml by calling
DeploymentServiceUtils.getResourcesFromResourcesXML()(Line 361). The app
variable is null in this method, hence it is unable to retrieve the associated