[
https://issues.jboss.org/browse/JBRULES-3053?page=com.atlassian.jira.plug...
]
Mark Proctor reassigned JBRULES-3053:
-------------------------------------
Assignee: Kris Verlaenen (was: Mark Proctor)
Include jbpm-persistence-jpa.jar into distribution
--------------------------------------------------
Key: JBRULES-3053
URL:
https://issues.jboss.org/browse/JBRULES-3053
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.2.0.M2
Reporter: Tomáš Schlosser
Assignee: Kris Verlaenen
If jbpm-persistence-jpa.jar is not on classpath, following exceptionis thrown:
Exception in thread "main" java.lang.IllegalStateException:
java.lang.reflect.InvocationTargetException
at
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
at
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
at
org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:109)
at org.sample.Test.main(Test.java:48)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
... 3 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Unable to load
class: org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory
at org.jbpm.process.instance.ProcessRuntimeImpl.loadClass(ProcessRuntimeImpl.java:97)
at
org.jbpm.process.instance.ProcessRuntimeImpl.initProcessInstanceManager(ProcessRuntimeImpl.java:71)
at
org.jbpm.process.instance.ProcessRuntimeImpl.<init>(ProcessRuntimeImpl.java:60)
at
org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:10)
at
org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl.newProcessRuntime(ProcessRuntimeFactoryServiceImpl.java:6)
at
org.drools.runtime.process.ProcessRuntimeFactory.newProcessRuntime(ProcessRuntimeFactory.java:12)
at
org.drools.common.AbstractWorkingMemory.createProcessRuntime(AbstractWorkingMemory.java:359)
at
org.drools.common.AbstractWorkingMemory.setKnowledgeRuntime(AbstractWorkingMemory.java:1260)
at
org.drools.impl.StatefulKnowledgeSessionImpl.<init>(StatefulKnowledgeSessionImpl.java:116)
at
org.drools.impl.StatefulKnowledgeSessionImpl.<init>(StatefulKnowledgeSessionImpl.java:110)
at org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:372)
at org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:352)
at
org.drools.impl.KnowledgeBaseImpl.newStatefulKnowledgeSession(KnowledgeBaseImpl.java:175)
at
org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:101)
... 8 more
Caused by: java.lang.ClassNotFoundException: Unable to load class:
org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory
at org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:92)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.jbpm.process.instance.ProcessRuntimeImpl.loadClass(ProcessRuntimeImpl.java:95)
... 21 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira