activiti.cfg.xml question

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2011 12:45 PM
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
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

Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2011 02:06 PM
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:
Cheers
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2011 01:46 PM
Thank you for help!
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 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
