cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple activiti.cfg.xml files...

mtr3691
Champ in-the-making
Champ in-the-making
Am in the process of integrating LDAP with Activiti, in the forums there are statements referring to modifying the activiti.cfg.xml file for various features, additions, etc.

The user guide references putting the config file somewhere in the classpath and in some instances in the guide makes explicit reference to the version located in the lib directory.

Currently, I am modifying the activiti.cfg.xml file located in the activiti-cfg.jar file withing the lib directory of a the rest api webapp. I see another version of the activiti.cfg.xml file in the classes directory…

Within a given webapp, which activiti.cfg.xml file is "supposed" to be used, proper?

Thanks!
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

Which version of Activiti are you using?
In the latest version, 5.7, there's no activiti.cfg.jar any more.

Best regards,

mtr3691
Champ in-the-making
Champ in-the-making
Am using version 5.7.

Did you mean activiti-cfg.jar?

I do see an activiti-cfg.jar(which contains an activiti.cfg.xml file) in the \activiti-rest\WEB-INF\lib
AND
an activiti.cfg.xml file in the \activiti-rest\WEB-INF\classes directory…

The User guide (5.7) makes reference to the activiti-cfg.jar file as well…(at least 3 references)…

Thanks…

trademak
Star Contributor
Star Contributor
Hi,

Okay. There activiti-cfg.jar is copied from the installation script to the activiti-rest/WEB-INF/lib directory.
This is legacy from the previous Activiti REST application, so we'll remove it for 5.8.
Right now the activiti.cfg.xml from the activiti-cfg.jar gets loaded first on the classpath and therefore this configuration is used.
For now you can do 2 things. I'll list them in the order of my preference:

1. Delete the activiti-cfg.jar file from the activiti-rest/WEB-INF/lib directory and use the activiti.cfg.xml from the activiti-rest/WEB-INF/classes dir for configuration.
2. Use the activiti.cfg.xml from the activiti-cfg.jar for configuration. You'll have to recreate the JAR everytime then.

Best regards,

mtr3691
Champ in-the-making
Champ in-the-making
trademak…

Thank you for the confirmation and explanation…

For the time being I will be using your 2nd recommended method since it is referred to repeatedly in the User Guide and I have to pass on my documentation to people who most likely will not see this forum posting…

…understood, once you folks make changes in 5.8, we will have to make changes as well, but consistency is important at the moment.

Thank you again for your time…