Is spark and openfire free for use?
Yes they are free to use (currently both are licensed under GPL license, but next Openfire version will be under Apache license, it will stay free).
Spark includes commercial version, does it have any restrition on use?Thanks!
What do you mean commercial? There is no commercial version of Spark. There was a branding (skinning) paid service, but it doesn’t exist anymore. Spark 2.5.8 has some proprietary parts (dictionary, synthetica theme), but they should be replaced by open source alternatives in the next versions. SVN version already using free spellcjecker plugin and tested with other theme framework.