[jboss-user] [JBoss jBPM] - Problem Sending a email via ActionHandler
Froschfinger
do-not-reply at jboss.com
Sat Oct 14 07:34:30 EDT 2006
hi, i want to develop a Workflow prototype for my faculty at the TU Dresden, but i have a big problem. I want to send emails to different persons after completing tasks. i wrote two classes which handle the actions with the Javamail API. As a standalone application it works but if i put it in a ActionHandler Jboss said, that he couldn't find the javamail.default.providers int the database. Does anybody know how to solve this problem or is there another solution for sending emails. the stacktrace looks like:
| Caused by: org.jbpm.JbpmException: couldn't get value for file 'META-INF/javamail.default.providers'
| at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:186)
| at org.jbpm.instantiation.ProcessClassLoader.getResourceAsStream(ProcessClassLoader.java:43)
| at java.lang.Class.getResourceAsStream(Class.java:1331)
| at javax.mail.Session$4.run(Session.java:1193)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.mail.Session.getResourceAsStream(Session.java:1190)
| at javax.mail.Session.loadResource(Session.java:1082)
| at javax.mail.Session.loadProviders(Session.java:889)
| at javax.mail.Session.<init>(Session.java:210)
| at javax.mail.Session.getDefaultInstance(Session.java:299)
| at com.sample.action.MailSend.sendMail(MailSend.java:38)
| at com.sample.action.MyActionHandler.execute(MyActionHandler.java:30)
| at org.jbpm.graph.def.Action.execute(Action.java:123)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
| ... 68 more
| Caused by: org.jbpm.JbpmException: file 'META-INF/javamail.default.providers' not found in db
| at org.jbpm.file.def.FileDefinition.getByteArray(FileDefinition.java:210)
| at org.jbpm.file.def.FileDefinition.getBytesFromDb(FileDefinition.java:202)
| at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:183)
| ... 81 more
|
I work with JBPM 3.1.2 and the Javamail API 1.4
I really hope somebody could give me some hints.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978319#3978319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978319
More information about the jboss-user
mailing list