Exception @Createprocess: No ClassLoaders found for: javax.jcr.Node
armahdi Feb 6, 2011 1:43 AMHi,
I have been working with the dvdstore example and created my own project using seam-gen. I added a jbpm process definition and after some effort i was able to create the jBPM tables and start up the application. I (like the dvd store example) have placed my @Createprocess annotation on a method in my EntityHome of an entity which i call when I click on a button. upon clicking that button the method runs fine. and persists the things it needs to persist. but then it throws this exception:
"Caused by: java.lang.NoClassDefFoundError
at org.jbpm.context.exe.matcher.JcrNodeMatcher.class$(JcrNodeMatcher.java:33)
at org.jbpm.context.exe.matcher.JcrNodeMatcher.matches(JcrNodeMatcher.java:33)
at org.jbpm.context.exe.JbpmType.matches(JbpmType.java:53)
at org.jbpm.context.exe.VariableInstance.createVariableInstance(VariableInstance.java:86)
at org.jbpm.context.exe.VariableInstance.create(VariableInstance.java:65)
at org.jbpm.context.exe.VariableContainer.setVariableLocally(VariableContainer.java:173)
at org.jbpm.context.exe.VariableContainer.setVariable(VariableContainer.java:45)
at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:212)
at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:202)
at org.jboss.seam.contexts.BusinessProcessContext.flushToProcessInstance(BusinessProcessContext.java:206)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessContext.java:168)
at org.jboss.seam.bpm.BusinessProcess.afterCreateProcess(BusinessProcess.java:159)
at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:152)
at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:112)
at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at gso.conf.action.NDBApplicationHome_$$_javassist_seam_4.submitApplication(NDBApplicationHome_$$_javassist_seam_4.java)
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 org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 53 more
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: javax.jcr.Node
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:534)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:428)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
... 92 more"
now i have the jbpm.jpdl.jar whose metaInf has this manifest file:
"Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
Implementation-Title: jBPM Core Library
Implementation-Version: 3.2.2 (date:12-Sep-2007 13:59)
Implementation-URL: http://www.jboss.org/
Implementation-Vendor: JBoss Inc.
Implementation-Vendor-Id: http://www.jboss.org/"
i saw the jar file and the JCR is actually bundled up in org.jbpm.jcr, but still there is no Node class in there either. this is the same jar that is in the dvdstore example libraries as well. What is so wrong here ??? Can anybody please help.
I have been working with the dvdstore example and created my own project using seam-gen. I added a jbpm process definition and after some effort i was able to create the jBPM tables and start up the application. I (like the dvd store example) have placed my @Createprocess annotation on a method in my EntityHome of an entity which i call when I click on a button. upon clicking that button the method runs fine. and persists the things it needs to persist. but then it throws this exception:
"Caused by: java.lang.NoClassDefFoundError
at org.jbpm.context.exe.matcher.JcrNodeMatcher.class$(JcrNodeMatcher.java:33)
at org.jbpm.context.exe.matcher.JcrNodeMatcher.matches(JcrNodeMatcher.java:33)
at org.jbpm.context.exe.JbpmType.matches(JbpmType.java:53)
at org.jbpm.context.exe.VariableInstance.createVariableInstance(VariableInstance.java:86)
at org.jbpm.context.exe.VariableInstance.create(VariableInstance.java:65)
at org.jbpm.context.exe.VariableContainer.setVariableLocally(VariableContainer.java:173)
at org.jbpm.context.exe.VariableContainer.setVariable(VariableContainer.java:45)
at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:212)
at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:202)
at org.jboss.seam.contexts.BusinessProcessContext.flushToProcessInstance(BusinessProcessContext.java:206)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessContext.java:168)
at org.jboss.seam.bpm.BusinessProcess.afterCreateProcess(BusinessProcess.java:159)
at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:152)
at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:112)
at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
at gso.conf.action.NDBApplicationHome_$$_javassist_seam_4.submitApplication(NDBApplicationHome_$$_javassist_seam_4.java)
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 org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348)
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 53 more
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: javax.jcr.Node
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:534)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:428)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
... 92 more"
now i have the jbpm.jpdl.jar whose metaInf has this manifest file:
"Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
Implementation-Title: jBPM Core Library
Implementation-Version: 3.2.2 (date:12-Sep-2007 13:59)
Implementation-URL: http://www.jboss.org/
Implementation-Vendor: JBoss Inc.
Implementation-Vendor-Id: http://www.jboss.org/"
i saw the jar file and the JCR is actually bundled up in org.jbpm.jcr, but still there is no Node class in there either. this is the same jar that is in the dvdstore example libraries as well. What is so wrong here ??? Can anybody please help.