mail session was added to context.xml file of the integration sub
project.