java.lang.LinkageError: javax/mail/Session | Community
Skip to main content
New Participant
October 2, 2017

java.lang.LinkageError: javax/mail/Session

  • October 2, 2017
  • 1 reply
  • 9555 views

In our AEM Forms 6.3 J2EE environment we are using the LiveCycle EmailService succesfully.

Now, for another process, we want to use the Day CQ Mail Service also.

After submitting the adaptive form to the com.day.cq.mailer.DefaultMailService  we get an error:

Error during include of component '/libs/fd/af/components/guideContainerWrapper'

Error Message:

java.lang.LinkageError: javax/mail/Session

It seems there is a conflict with the two different EmailSerivces?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

smacdonald2008
New Participant
October 2, 2017

Email in AEM is typically used for AEM Workflows.  Looks like you want to send an email when a form is submitted, If so, develop a custom AEM service that uses Java MAIL API to send emails.

Ratna_Kumar
New Participant
October 3, 2017

Hi,

Yes, Scott is correct. You can see the typical exam of HELPX Article we have.

//Adobe Experience Manager Help | Creating custom Adobe Experience Manager email services

~Ratna.

formatixAuthor
New Participant
October 4, 2017

Thanks for the answers.

This means that in a JEE environment, the built-in OSGI mail services can not be used; instead, separate components have to be developed?

Jan