AnsweredAssumed Answered

Activiti 6 error creating bean processEngine databaseId must be declared for element type sql

Question asked by llewandox23 on Nov 21, 2017

Everything worked in Activiti 5.20, now cannot load ApplicationContext

 

Caused by: org.activiti.engine.ActivitiException: Error while building ibatis SqlSessionFactory: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 55; Attribute "databaseId" must be declared for element type "sql".

 

Standard config

 

  <bean id="dataSourceWorklowTest" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">

<property name="driverClass" value="org.h2.Driver"/>

<property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000"/>

<property name="username" value="sa"/>

<property name="password" value=""/>

</bean>

 

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">

<property name="dataSource" ref="dataSourceWorklowTest" />

<property name="transactionManager" ref="transactionManagerWorkflowTest" />

<property name="databaseSchemaUpdate" value="true" />

<property name="asyncExecutorActivate" value="false" />

<property name="history" value="none" />

</bean>

 

....

Outcomes