[Snowdrop] - JBoss 6 + Snowdrop 2: order of JPA & Spring deployers
by Marcus Ilgner
Marcus Ilgner [http://community.jboss.org/people/milgner] created the discussion
"JBoss 6 + Snowdrop 2: order of JPA & Spring deployers"
To view the discussion, visit: http://community.jboss.org/message/598786#598786
--------------------------------------------------------------
Hello everyone,
I'm trying to run an application in JBoss AS 6 which contains both a persistence.xml which I would like to be started by JBoss, then afterwards a Spring application context is initialized which uses the previously defined persistence unit.
This worked fine in JBoss AS 5.1.0.GA using Snowdrop Spring Deployer from Snowdrop 1.1.0. But when I try to run it in JBoss AS 6.0.0.Final, the spring.deployer runs before the EJB/JPA deployer, resulting in an error because my Spring application cannot find the EntityManagerFactory.
Is there a way to change the order the deployers are started? I found one subject mentioning that there should be some "-service.xml" for the Spring deployer where one could supposedly use some kind of setRelativeOrder statement to influence the deployer chain but as that was referring to JBoss AS 4, I guess it is probably outdated anyway.
All the best
Marcus
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598786#598786]
Start a new discussion in Snowdrop at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - In memory TaskClient without Mina or JMS
by Gergely Dombi
Gergely Dombi [http://community.jboss.org/people/dombi] created the discussion
"In memory TaskClient without Mina or JMS"
To view the discussion, visit: http://community.jboss.org/message/588721#588721
--------------------------------------------------------------
Hi,
We are evaluating jBPM5 to be the backing workflow engine in our current project.
Previously we have implemented a number of successful projects with the jBPM3 stack.
First impressions with jBPM5 is pretty good however I have some questions about the Human Task management.
My understanding on this topic is, tha it is assumed that the web application and the workflow engine
is two separate applications, thus the client needs to communicate via Socket (Mina) or JMS.
In our application it is not the case (and neither was in my past experience).
We have a single binary web application (distributed as a war file) with the workflow engine, and the
workflow client (the web UI) running in the same VM (same webapp by the way).
Is there a way to implement such a solution that enables the client to manually (that is via API call)
set some process variables, specifiy a transition and signal the engine? I mean, without the
async(-like) mechanism provided by default.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588721#588721]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - Error while sending E mail Notification in jBPM 3.2.........
by Chamin Dennis Livera
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&cont...]
14 years, 8 months