Mam projekt oparty na Spring 2.5.6 i próbuję wkomponować w niego silnik activiti. Natknąłem jednak na problem z wstrzyknięciem ustawień do bazy danych itd. Dokładnie dostaję taki wyjątek:
Exception while initializing process engine: 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 'jdbcUrl' of bean class [org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration]:
Bean property 'jdbcUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
A to bean:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="jdbcUrl" value="jdbc:postgresql://localhost:5432/activiti" />
<property name="jdbcDriver" value="org.postgresql.Driver" />
<property name="jdbcUsername" value="[ciach]" />
<property name="jdbcPassword" value="[ciach]" />
<property name="databaseSchemaUpdate" value="false" />
<property name="jobExecutorActivate" value="true" />
<property name="mailServerHost" value="[ciach]" />
<property name="mailServerPort" value="25" />
<property name="mailServerUsername" value="username" />
<property name="mailServerPassword" value="password" />
<property name="mailServerUseTLS" value="false" />
</bean>
</beans>