Hi,
I have Tomcat 9.0.53 and i deployed a war file APP.war with 2 differents
libs

   - app/WEB-INF/lib/javax.mail-1.6.0.jar
   - app/WEB-INF/lib/mail-1.4.jar

QA environment hardware properties:
Mem:                           6809
Architecture:                x86_64
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                       2
Model name:               Intel(R) Xeon(R) CPU E7-4850 v4 @ 2.10GHz

Production environment hardware properties:
Mem:                           25960
Architecture:                x86_64
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                       13
Model name:               Intel(R) Xeon(R) CPU E7-4890 v2 @ 2.80GHz


In my QA env tomcat class loaders use javax.mail-1.6.0.jar for method
javax.mail.Authenticator
[23.922s][info][class,load] javax.mail.Authenticator source:
file:/tomcat-9.0.54/webapps/app/WEB-INF/lib/javax.mail-1.6.0.jar

but in my Prod env tomcat use mail-1.4.jar for same method
[12.306s][info][class,load] javax.mail.Authenticator source:
file:/tomcat-9.0.54/webapps/app/WEB-INF/lib/mail-1.4.jar

Do you know why Tomcat class loader use different libs in two different
environments?
Do you have best practices to force tomcat to always use the latest libs in
different environments?

Thanks & Regards
Ricardo

Reply via email to