Forum Discussion
Hi All,
I’m bringing this topic to the daylight as we would also like to use this event source, however, it seems javax.mail library no longer comes with Java - unable to resolve classes. I tried to import the library to the collector (dir - C:\Program Files\LogicMonitor\Agent\lib), but no luck.
Has anyone successfully imported and used additional Java libraries?
Error:
The embed groovy script syntax is illegal - org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script20.groovy: 171: unable to resolve class SubjectTerm
Hi Egis
The mail.jar have been replaced with jakarta.mail-2.0.1.jar on the latest collector release.
https://www.logicmonitor.com/release-notes/ea-collector-32400#:~:text=Since%20mail.jar%20is%20rarely%20used%20in%C2%A0Collector%2C%20we%20removed%20it%20from%20Collector%20codebase.%20We%20replaced%20it%20with%C2%A0jakarta.mail%2D2.0.1.jar
Can you try to update the eventsource with the below?
import jakarta.mail.*
import jakarta.mail.internet.*
import jakarta.mail.search.*
Kevin_Ford do you mind updating the module and republished?
Thanks!
Lim
- Kevin_Ford6 months agoEmployee
Excellent catch, Lim! I've updated the module and it's just awaiting security review. I'll post once it's published.
- Lim6 months agoLM Champion
You can take a look at Email_RoundTrip module and see how to maintain compatibility while we transfer from javax to jakarta.
Related Content
- 3 months ago
- 8 months ago
- 2 days ago
- 2 years agoAnonymous