[jboss-user] [JBoss jBPM] - Custom IdentitySession configuration

jokum do-not-reply at jboss.com
Tue Jun 23 16:27:54 EDT 2009


Hi,

Can somebody provide me with an example of jbpm.cfg.xml configuring a custom IdentitySession implementation. Currently I have something like this :<process-engine-context>
  |   	<identity-service/>
  |     
  |     <transaction-context>
  |     	<object class="be.mypackage.MyIdentitySession" />
  |   	</transaction-context>
  |     
  |   </process-engine-context>

but I keep getting this exception when running a unit test :

org.jbpm.api.JbpmException: 
  |   error: no element parser for tag transaction-context in category descriptor 
  | 	at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)
  | 	at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:142)
  | 	at org.jbpm.pvm.internal.xml.Parse.checkErrors(Parse.java:189)
  | 	at org.jbpm.pvm.internal.cfg.JbpmConfiguration.parse(JbpmConfiguration.java:165)
  | 	at org.jbpm.pvm.internal.cfg.JbpmConfiguration.setResource(JbpmConfiguration.java:137)
  | 	at org.jbpm.pvm.internal.cfg.JbpmConfiguration.buildProcessEngine(JbpmConfiguration.java:100)
  | 	at org.jbpm.api.Configuration.buildProcessEngine(Configuration.java:124)
  | 	at org.jbpm.test.JbpmTestCase.initialize(JbpmTestCase.java:89)
  | 	at org.jbpm.test.JbpmTestCase.setUp(JbpmTestCase.java:75)
  | 	at be.mypackage.DispatchSubmissionIT.setUp(DispatchSubmissionIT.java:56)
  | 	at junit.framework.TestCase.runBare(TestCase.java:132)
  | 	at junit.framework.TestResult$1.protect(TestResult.java:110)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:128)
  | 	at junit.framework.TestResult.run(TestResult.java:113)
  | 	at junit.framework.TestCase.run(TestCase.java:124)
  | 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
  | 	at junit.framework.TestSuite.run(TestSuite.java:227)
  | 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
  | 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
  | 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
  | 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
  | 
  | 

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

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



More information about the jboss-user mailing list