cancel
Showing results for 
Search instead for 
Did you mean: 

activiti.cfg.xml question

dindras
Champ in-the-making
Champ in-the-making
Good day,

after launching activiti demo and playing with some process deployments I came to the point where I had to configure mail server settings.

What is the proper way to to this?

I entered the required values in "setup/files/cfg.activiti/standalone/activiti.cfg.xml", then ran "ant cfg.create", restarted (demo.stop/demo.start) but saw no actual changes in activiti (sending mail tasks aborted with errors).
Only after cumbersome sequence of targets like "ant demo.clean && ant db.drop && ant demo.install" I got the right results with the mail happily delivered.

Thank you for any efforts to enlighten a newbie user Smiley Wink
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Hi,

Looks like the 'activiti.cfg.jar', created by the 'cfg.create' target, isn't copied to the /apps/tomcat/webapps/activiti-rest/lib/.

The 'ant demo.stop demo.clean demo.start' you did will copy the webapps to tomcat again, taking the new config-jar. An easier and bit faster way is this:

ant cfg.create demo.stop build.webapps demo.start

Cheers

dindras
Champ in-the-making
Champ in-the-making
Thank you for help!


ant cfg.create demo.stop build.webapps demo.start
the upper command didn't update the activiti-cfg.jar in apps/apache-tomcat-6.0.29/webapps/activiti-rest/WEB-INF/lib .

But I took a look at targets in build.xml and added "deploy.activiti.cfg.into.tomcat" to your example (don't know if it is the right way), so the following worked for me:
ant cfg.create demo.stop build.webapps deploy.activiti.cfg.into.tomcat demo.start