i'm getting this error:
| Exception in thread "main" java.lang.NoClassDefFoundError:
org/hibernate/Session
| at
org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55)
| at org.jbpm.svc.Services.getService(Services.java:136)
| at org.jbpm.svc.Services.getPersistenceService(Services.java:175)
| at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:515)
| at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:431)
| at org.jbpm.JbpmContext.newProcessInstance(JbpmContext.java:266)
| at
solicitudes.SolicitudPrestamo.createInstance(SolicitudPrestamo.java:36)
| at solicitudes.Tester.main(Tester.java:13)
|
HERE IS THE PROCESS DEFINITION:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1" name="SolicitudPrestamo">
| <swimlane name="RevisarDatos">
| <assignment expression='user(bert)'></assignment>
| </swimlane>
| <swimlane name="RevisarCredito">
| <assignment expression='user(ernie)'></assignment>
| </swimlane>
| <start-state name="RevisarDatos">
| <task name="RevisarDatos" swimlane="RevisarDatos">
| <controller>
| <variable name="Codigo Cliente"
access="read,write,required"></variable>
| <variable name="Nombre Cliente"
access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="to_VerificarCredito"
to="RevisarCredito"></transition>
| </start-state>
| <task-node name="RevisarCredito">
| <task name="RevisarCredito" swimlane="RevisarCredito">
| <controller>
| <variable name="Codigo Cliente" access="read"></variable>
| <variable name="Nombre Cliente" access="read"></variable>
| <variable name="Calificacion"></variable>
| </controller>
| </task>
| <transition name="to_end" to="end1"></transition>
| </task-node>
| <end-state name="end1"></end-state>
| </process-definition>
|
AND JAVA SOURCE CODE:
| JbpmContext jbpmContext =
JbpmConfiguration.getInstance().createJbpmContext();
| try
| {
|
| ProcessInstance processInstance = jbpmContext.newProcessInstance
("SolicitudPrestamo");
|
| if (processInstance.getProcessDefinition().getTaskMgmtDefinition
().getStartTask() == null)
| {
| processInstance.signal();
| }
| else
| {
| TaskInstance startTask =
| processInstance.getTaskMgmtInstance().createStartTaskInstance();
| jbpmContext.save(startTask);
| }
| }
| finally
| {
| jbpmContext.close();
| }
|
I looked over the javadocs and User Guide but there is no reference to this
kind of situation.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953559#3953559
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953559
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user