This content has been marked as final. Show 2 replies
Thank you for your quick reply.
After I tried the solutions specified in the thread you mentioned it (Solution 1. Copy the mail.jar and activation.jar to <tomcat>/common/lib folder;
Solution 2. Within sending email method I added: Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader() ) I received another error:
This was happening because one of the jar files that tomcat had in its classpath referred another mail.jar (in its manifest file) that was older than mine.
So, I reverted any changes I had made on first step (the solutions 1,2) and I fixed it only by setting my mail.jar as first jar within tomcat classpath.