when im trying to send a mail using java mail api in my web application , I\'m getting this exception.
java.lang.SecurityException: Access to default session denied
I've got the same error, when I launch 2 tests in Webdriver. In secound test i've got "java.lang.SecurityException: Access to default session denied".
When I used method Session.getInstance instead Session.getDefaultInstance in every test, errors disappeared.