cancel
Showing results for 
Search instead for 
Did you mean: 

activiti.cfg.xml not getting picked up from activiti-rest webapp

shuchi
Champ in-the-making
Champ in-the-making
Hi,

I have put activiti.cfg.xml in WEB-INF/classes directory of activiti-rest webapp which I have deployed in Tomcat. I have put email configuration inside it:

   <bean id="processEngineConfiguration"
      class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
      <property name="mailServerHost" value="smtp.sendgrid.net" />
      <property name="mailServerUsername" value="user" />
      <property name="mailServerPassword" value="123" />
   </bean>

But the mail properties are not getting picked up. I am presuming the default way of initialising ProcessEngine is being used and this spring config is not being read.

Please help!

Thanks,
Shuchi

5 REPLIES 5

shuchi
Champ in-the-making
Champ in-the-making
To add, I am using the provided activiti-explorer and activiti-rest webapps and have put activiti.cfg.xml inside both. Also, I have tried adding mail.host, mail.username, mail.password properties in engine.properties file of activiti-explorer webapp where process engine is getting initialized. But neither way is working out.

jbarrez
Star Contributor
Star Contributor
Which version are you using? 5.16.4 has have changes, but 5.16.3 or lower should work as you describe

jbarrez
Star Contributor
Star Contributor
Which version are you using? 5.16.4 has have changes, but 5.16.3 or lower should work as you describe

shuchi
Champ in-the-making
Champ in-the-making
Ya I actually downgraded to 5.16.3, wasn't sure if 5.17 also would work.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
It appears that this really does not work on 5.16.4.

Do update to 5.17 , you will have activiti-custom-context.xml …
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.