PortletExplodedTomcatListener is currently doing the following things
1. Massage the exploded directory
2. Then copy context xml to tomcat's conf directory (Which is required for the deployment of portlet app on tomcat)
But the second step is not required when the appserver type is Glassfish. Currently the copyContextFile() copies the context xml file to Glassfish's domain1/conf directory. Because of that glassfish is throwing exception during every deployment (Though the exception is harmless).
- In PortletExplodedTomcatListener, don't copy context xml file if the appserver type is glassfish.