i am a beginner at JBPM..
i have created a Junit class that do this:
anonymous wrote : 
  | public class SimpleProcessTest extends TestCase {
  | 
  |     public void testSimpleProcess() throws Exception {
  |             JbpmConfiguration jbpmConfiguration = 
JbpmConfiguration.getInstance();
  |             // Extract a process definition from the processdefinition.xml 
file.
  |             
  |             JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  |             try {
  |               String processName = "aymen";
  |               ProcessInstance processInstance = 
  |                   jbpmContext.newProcessInstance(processName);
  |             } finally {
  |               jbpmContext.close();
  |             }
  |             
  | 
  |     }
  | 
  | }
  | 
  | 

i have this error:


anonymous wrote : 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 
com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:21)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at junit.framework.TestCase.runTest(TestCase.java:154)
  |     at junit.framework.TestCase.runBare(TestCase.java:127)
  |     at junit.framework.TestResult$1.protect(TestResult.java:106)
  |     at junit.framework.TestResult.runProtected(TestResult.java:124)
  |     at junit.framework.TestResult.run(TestResult.java:109)
  |     at junit.framework.TestCase.run(TestCase.java:118)
  |     at junit.framework.TestSuite.runTest(TestSuite.java:208)
  |     at junit.framework.TestSuite.run(TestSuite.java:203)
  |     at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
  |     at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
  |     at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

please help me. it s very urgent to find the pb

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954632#3954632

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954632

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
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to