You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 24 Members of 4546 |
| Forum: Seam Users |
18. Aug 2008, 18:10 CET | Link |
I have copied the jbpm.cfg.xml and hibernate.cfg.xml and hello.jpdl.xml on my web-inf/lib abnd the myProj-ear.ear directory on the server/default/deploy directory of Jboss AS.
Now in my authenticator method I put a @CreateProcess(definition hello
) so as to launch a simple workflow definition when the user logs in. THis is just to test if JBPM works fine with Seam.
When I run the program no errors/exceptions were encountered which means that I have setup the configuration files properly and put the files and jars in the proper places.
However, when I perform a login, the authenticator method executes but then issues an exception:
...org.jbpm.JbpmException: could not find process definition hello
Any Ideas?
Your process definition should go in the root of the EAR, see http://docs.jboss.com/seam/2.0.3.CR1/reference/en-US/html_single/#d0e15661 for jBPM packaging.
My process definition is on the root of the EAR. It comes with the jbpm.cfg.xml and hibernate.cfg.xml.
I got this to work.
edited hibernate.cfg.xml edit the
line property namejava:/MyDataSourceproperty to point to my dataSource instead of java:/jpbmDS...
Apparently the root exception was an SQLException saying it could not open a connection.