Chamin Dennis Livera [
http://community.jboss.org/people/dennislivera] created the
discussion
"Error while sending E mail Notification in jBPM 3.2........."
To view the discussion, visit:
http://community.jboss.org/message/611813#611813
--------------------------------------------------------------
I have tried to send e mail Notification using following procedure
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2"
name="simple">
<start-state name="Start">
<transition to="Notification"></transition>
</start-state>
<task-node name="Notification">
<task name="Notification">
<event type="node-enter">
<mail name="M_MailAction" to="test(a)gmail.com
(mailto:test@gmail.com)" template="jbpm.mail.templates.xml">
<subject>Subject: Mail action - mail</subject>
<text>Text: This mail is of type- mail actions</text>
</mail>
</event>
<assignment actor-id="E mail Sender"></assignment>
</task>
<transition to="End"></transition>
</task-node>
<end-state name="End"></end-state>
</process-definition>
but couldn't, following error occer every time i try
log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration). log4j:WARN
Please initialize the log4j system properly. Exception in thread "main"
java.lang.NoClassDefFoundError: javax/mail/Address at java.lang.Class.forName0(Native
Method) at java.lang.Class.forName(Class.java:169) at
org.jbpm.jpdl.xml.JpdlXmlReader.class$(JpdlXmlReader.java:269) at
org.jbpm.jpdl.xml.JpdlXmlReader.createMailDelegation(JpdlXmlReader.java:879) at
org.jbpm.graph.action.MailAction.read(MailAction.java:17) at
org.jbpm.jpdl.xml.JpdlXmlReader.readAction(JpdlXmlReader.java:697) at
org.jbpm.jpdl.xml.JpdlXmlReader.createAction(JpdlXmlReader.java:681) at
org.jbpm.jpdl.xml.JpdlXmlReader.readActions(JpdlXmlReader.java:635) at
org.jbpm.jpdl.xml.JpdlXmlReader.readEvents(JpdlXmlReader.java:624) at
org.jbpm.jpdl.xml.JpdlXmlReader.readNode(JpdlXmlReader.java:529) at
org.jbpm.jpdl.xml.JpdlXmlReader.readNodes(JpdlXmlReader.java:256) at
org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:157) at
org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:181) at
com.sample.SimpleProcessTest.execute(SimpleProcessTest.java:18) at
com.sample.SimpleProcessTest.main(SimpleProcessTest.java:14) Caused by:
java.lang.ClassNotFoundException: javax.mail.Address at
java.net.URLClassLoader$1.run(URLClassLoader.java:200) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
java.lang.ClassLoader.loadClass(ClassLoader.java:303) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at
java.lang.ClassLoader.loadClass(ClassLoader.java:248) at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 15 more
Whta went wrong, is there any other configurations i have to make??
Need Help?
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/611813#611813]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]