java - How to send mail throw BPMN 2.0 with Camunda? -
i try send mail bpmn 2.0 , not delegatetask or listener.
i tried :
<bpmn2:servicetask id="servicetask_1" name="mailservice" camunda:type="mail"> <bpmn2:extensionelements> <camunda:field name="to" stringvalue="test@test.com" /> <camunda:field name="subject" expression="hello" /> <camunda:field name="html" expression="hello" /> </bpmn2:extensionelements> </bpmn2:servicetask>
but fail :
caused by: org.camunda.bpm.engine.classloadingexception: not load class: org.camunda.bpm.engine.impl.bpmn.behavior.mailactivitybehavior @ org.camunda.bpm.engine.impl.util.reflectutil.loadclass(reflectutil.java:85) @ org.camunda.bpm.engine.impl.util.reflectutil.instantiate(reflectutil.java:147) ... 43 more caused by: java.lang.noclassdeffounderror: org/apache/commons/mail/emailexception @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:270) @ org.camunda.bpm.engine.impl.util.reflectutil.loadclass(reflectutil.java:65) ... 44 more caused by: java.lang.classnotfoundexception: org.apache.commons.mail.emailexception
i've add mail-1.5.0.jar, commons-emails-1.2.jar , commons-logging-1.jar $camunda_home/server/apache-tomcat-*/lib.
i work camunda 7.1.0-final on tomcat server.
in lib
folder did add commons-emails-1.2.jar etc?
if copied them lib
folder in $camunda_home
(the directory start-camunda.sh
file exists) please move them lib
folder of application server (e.g. $camunda_home/server/apache-tomcat-7.0.50/lib/
).
Comments
Post a Comment