[jboss-user] [JBoss jBPM] - Re: Bug in jpdl 3.2.3 not finding default.jbpm.cfg.xml (not

kukeltje do-not-reply at jboss.com
Sun Jul 13 10:56:30 EDT 2008


uhmm... btw your testcase is a great example of how to write one but.... you should always post a full stacktrace... in my situation I got:


  | org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml'
  | 	at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
  | 	at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:257)
  | 	at org.jbpm.JbpmConfiguration$Configs.getObjectFactory(JbpmConfiguration.java:425)
  | 	at org.jbpm.JbpmConfiguration$Configs.getObject(JbpmConfiguration.java:437)
  | 	at org.jbpm.JbpmConfiguration$Configs.getString(JbpmConfiguration.java:441)
  | 	at org.jbpm.graph.def.ProcessDefinition.createNewProcessDefinition(ProcessDefinition.java:97)
  | 	at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
  | 	at org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:150)
  | 	at ScriptExpressionTest.testExpression(ScriptExpressionTest.java:34)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	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.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
  | 	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)
  | Caused by: org.jbpm.JbpmException: jbpm configuration resource 'jbpm.cfg.xml' is not available
  | 	at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:286)
  | 	... 26 more
  | 

which in the end clearly states: org.jbpm.JbpmException: jbpm configuration resource 'jbpm.cfg.xml' is not available

Adding one to my classpath (the default one from the config dir in the distribution) fixes the error.... 

I get the same error with your test if I remove the script tag at all, so it is just an issue of not finding a jbpm.cfg.xml anywhere. That should not be a problem since it should use the default.jbpm.cfg.xml from the jar. It clearly doesn't. So it is a regression in that area I think


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

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



More information about the jboss-user mailing list