• How to replace JavaMail with Jakarta Mail in OpenKM?

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #54874  by Ethan.Yang
 
Image


I am using this version: https://download.openkm.com/


Hi OpenKM team,

I'm currently facing an issue with mail-1.5.2.jar as it does not support modern Microsoft 365 authentication methods (OAuth2).

To resolve this, I would like to replace JavaMail with Jakarta Mail in OpenKM.
Could you please guide me on the steps required to implement this change? Specifically:

1.Which Jakarta Mail version is compatible with OpenKM?
2.Are there any configurations or dependencies I need to modify for OpenKM to support Jakarta Mail?
3.Will there be any code-level changes required?


Or is there another way for me to use Office 365?
-------------------------------------------------------------------------------
Does jBPM also use mail-1.5.2.jar? Please tell me how to change it.
 #54875  by jllort
 
The jar file is in the tomcat/lib folder, but I think can only updated until version 1.6 ( remove the file into and replace by the new one
https://mvnrepository.com/artifact/com. ... mail/1.6.2 ( download link https://repo1.maven.org/maven2/com/sun/ ... -1.6.2.jar )
 #54878  by jllort
 
With the CE these are the libraries you can use. You can try to download the code and check if an upper version of the library can be used:

https://github.com/openkm/document-mana ... me-ov-file
or the personal development environment here https://docs.openkm.com/kcenter/view/ok ... nment.html

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.