[jBPM] New message: "Problem while executing a process under eclipse"
by ABIDI Sami
User development,
A new message was posted in the thread "Problem while executing a process under eclipse":
http://community.jboss.org/message/532713#532713
Author : ABIDI Sami
Profile : http://community.jboss.org/people/uaibys
Message:
--------------------------------------------------------------
Hi,
I want to execute a jbpm process using eclipse, and I tried this code :
import org.jbpm.api.ProcessInstance;
import org.jbpm.api.Configuration;
import org.jbpm.api.ExecutionService;
import org.jbpm.api.ProcessEngine;
import org.jbpm.api.RepositoryService;
public class Main {
public static void main(String[] args){
ProcessEngine processengine = new Configuration().buildProcessEngine();
RepositoryService repositoryservice = processengine.getRepositoryService();
ExecutionService executionservice = processengine.getExecutionService();
String deploymentId = repositoryservice.createDeployment().addResourceFromClasspath("test/process.jpdl.xml").deploy();
ProcessInstance processInstance = executionservice.startProcessInstanceById(deploymentId);
}
}
But when I launch the execution, I have this error message :
### EXCEPTION ###########################################
09:30:22,778 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd@118cb3a
org.jbpm.api.JbpmException: no process definition with id '1'
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:56)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(ExecutionServiceImpl.java:50)
at test.Main.main(Main.java:25)
I think that it's caused by a configuration problem, but I don't know what is it. Could someone help me?
Thanks !
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532713#532713
16 years, 4 months
[Beginner's Corner] New message: "Eclipse 3.5.2 + JBT 3.1 Final"
by Honiewelle Flores
User development,
A new message was posted in the thread "Eclipse 3.5.2 + JBT 3.1 Final":
http://community.jboss.org/message/532708#532708
Author : Honiewelle Flores
Profile : http://community.jboss.org/people/honiewelle
Message:
--------------------------------------------------------------
Hi all,
I am currently having a problem running a seam application inside eclipse.The project was created via the Seam Web Project wizard and
I had already configured a runtime server and and the target server for JB 5.1, however, when I run via server the project and
accessed its url (http://localhost:8080/<projectname>) the server returns that the resource is not available.
My current configuration follows:
Jboss AS 5.1.0 GA
Jboss Seam 2.2
Jboss Tools 3.1 Final
Eclipse 3.5.2
Attached also a screenshot of the eclipse IDE. Its my first time using jboss so please bear with me.
Any help will be greatly appreciated. Thanks!
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532708#532708
16 years, 4 months