Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

CQ Email notifications in AEM Forms JEE release

Avatar

Avatar
Validate 1
Level 1
_Sidharth
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
_Sidharth
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
_Sidharth
Level 1

13-04-2016

I’m running the AEM forms 6.1 SP1 JEE release. (windows 2k12, Jboss, MySQL) Amazon EC2 instance
My use case is to send email notifications whenever an asset is put through a CQ workflow, or if it is modified.

> To achieve this, i have made smtp configs to the CQ mail service
> Added email address for the target sample user
> Updated the workflow step to ensure that it is sending email notifications
(not sure if i’m missing any other mandatory step)

When i trigger the wokflow, i simply get an error saying:
06.04.2016 21:48:07.162 *ERROR* [pool-16-thread-10-null(null)] com.day.cq.workflow.impl.email.EMailNotificationService error while sending email for com.day.cq.workflow.impl.exec.CQWorkItemWrapper@4d1de032: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "javax/mail/Session"

Seems like the email service fails even before it gets to use my SMTP config.

Can someone please confirm if this is a JEE release specific issue, or if I'm at fault with my steps.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct Reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct Reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

16-04-2016

Sid,

Try to create a framework extension bundle so that javax.mail.* are provided along with system packages. See below links :

https://helpx.adobe.com/experience-manager/kb/CreatingExtension.html

http://stackoverflow.com/questions/787985/apache-felix-what-are-extension-bundles

Thanks

Wasil

Answers (0)