Apr 14th, 2010, 12:11 PM
endorsed jars for SMTP
We are deploying an application that sends email using javax.mail.
We bundle in java-mail-1.4.jar in our war file. I have also found that CF provides the gnu implementation of SMTP.
Sending emails failed. catalina.out showed an exception something like NoProviderException for SMTP.
We changed our configuration to upload the java-mail jar as an endorsed jar. CF puts it in common/endorsed. When we run under that configuration, sending emails also fails because it load s the GNU email jar whichh for some reason is not compatible with the way that we are using javax.mail.
1. Why can Tomcat not find an SMTP implementation in the first case, when the GNU implementation is pre-loaded in Tomcat and the java-mail implementation is in the war?
2. Why does Tomcat load the GNU implementation when the sun implementation is present in endorsed?