6 Replies Latest reply on Feb 23, 2012 11:32 PM by Hardik Dave

    jBPM5 Spring Integration: 'jbpm:kbase' can not be found

    liliana.iovanovici Newbie

      Hello,

       

      I am trying to integrate JBPM5 with Spring. For the beggining I pu in conf-spring.xml file:  (Line 12)

        <jbpm:kbase id="kbase">

          <jbpm:resources>

            <jbpm:resource type="BPMN2" source="classpath:Hi.bpmn" />

          </jbpm:resources>

        </jbpm:kbase>

       

       

        <jbpm:ksession id="ksession" type="stateful" kbase="kbase">

          <jbpm:configuration>

            <jbpm:jpa-persistence>

              <jbpm:entity-manager-factory ref="entityManagerFactory"/>

              <jbpm:transaction-manager ref="transactionManager"/>

            </jbpm:jpa-persistence>

          </jbpm:configuration>

        </jbpm:ksession>

       

      But when I created the context :

       

      ApplicationContext context = new ClassPathXmlApplicationContext("conf-spring.xml") I got an error:

       

      Line 12 in XML document from class path resource [spring-conf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jbpm:kbase'.

       

      Does anybody know what could be the problem?

       

      Thanks.