AnsweredAssumed Answered

Datasource on StandaloneProcessEngineConfiguration

Question asked by edsonrichter on Jun 4, 2016
Latest reply on Jun 4, 2016 by edsonrichter
I must be doing something really stupid… but I can't figure out without help.
Using Activiti 5.20.0. Running Tomcat 8.0.33. Without spring.
All required JAR files are on server lib folder (double checked).

Error I'm getting:

"(org.springframework.beans.factory.BeanCreationException) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in resource loaded through InputStream: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dataSource' of bean class [org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration]: Bean property 'dataSource' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?"

My activiti.cfg.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

  <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/activiti"/>
  <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
    <property name="dataSource" ref="dataSource" />

Please, help.


Edson Richter