1 Reply Latest reply on Feb 12, 2008 11:03 AM by twiceknightly

    Problem adding variables to context instance

    twiceknightly

      I have put together a simple junit test. Part of this test defines an action that performs the following:

      ContextInstance instance = executionContext.getContextInstance() ;
      instance.setVariable("id","1") ;

      When I'm running it I'm getting

      Exception in thread "Main Thread" java.lang.Error: Unresolved compilation problems:
       The import javax.jcr cannot be resolved
       Node cannot be resolved to a type
      
       at org.jbpm.context.exe.matcher.JcrNodeMatcher.<init>(JcrNodeMatcher.java:24)
       at java.lang.Class.newInstance(I)Ljava.lang.Object;(Unknown Source)
       at org.jbpm.configuration.BeanInfo.createObject(BeanInfo.java:86)
       at org.jbpm.configuration.ObjectFactoryImpl.getObject(ObjectFactoryImpl.java:154)
       at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:103)
       at org.jbpm.configuration.JbpmTypeObjectInfo.createObject(JbpmTypeObjectInfo.java:100)
       at org.jbpm.configuration.ObjectFactoryImpl.getObject(ObjectFactoryImpl.java:154)
       at org.jbpm.configuration.ListInfo.createObject(ListInfo.java:51)
       at org.jbpm.configuration.ObjectFactoryImpl.getObject(ObjectFactoryImpl.java:146)
       at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:103)
       at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:78)
       at org.jbpm.context.exe.JbpmType.getDefaultJbpmTypes(JbpmType.java:88)
       at org.jbpm.context.exe.JbpmType.getJbpmTypes(JbpmType.java:76)
       at org.jbpm.context.exe.VariableInstance.createVariableInstance(VariableInstance.java:81)
       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)
      


      Does anyone know the jar I am missing?