Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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?

3 Replies:
18. Aug 2008, 18:41 CET | Link

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.

20. Aug 2008, 17:37 CET | Link

My process definition is on the root of the EAR. It comes with the jbpm.cfg.xml and hibernate.cfg.xml.

20. Aug 2008, 20:10 CET | Link

I got this to work.

edited hibernate.cfg.xml edit the

line property nameconnection.datasourcejava:/MyDataSourceproperty to point to my dataSource instead of java:/jpbmDS...

Apparently the root exception was an SQLException saying it could not open a connection.