AnsweredAssumed Answered

External mailserver configuration in activiti-explorer and tomcat

Question asked by werners on Mar 18, 2014
Latest reply on Mar 19, 2014 by werners
Hi all,
I hope that my question was not asked already twice or even more often.

In Activiti 5.14 i am trying to enable the activiti mail function in combination with our exchange server and a local postgresql database.
First i configured the properties in the activity.cfg.xml and run the email example in eclipse and JVM.

<property name="mailServerHost" value="" />
<property name="mailServerPort" value="26" />

…and everything works as expected.

Later i tried to configure these both setting inside tomcat and the activiti-explorer with edtiting the "activiti-standalone-context.xml"

<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
<property name="mailServerPort" value="26"/>
<property name="mailServerHost" value=""/>

When i start tomcat again, i got following exception, and the activiti-explorer didn't start up.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in ServletContext resource [/WEB-INF/activiti-standalone-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'mailServerPort' of bean class [org.activiti.spring.ProcessEngineFactoryBean]: Bean property 'mailServerPort' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Can someone give me some advice what I have done wrong?

Thank you much.