You only said you were editing the confluence.cfg.xml in your question, so we had nowhere else to look, we have to assume you're getting that file wrong.
Now it seems you are trying to do an upgrade and migration without doing the upgrade properly.
You should split that into two parts. Move the same version of Confluence on to the new server and then upgrade it. Or upgrade first and then move.
Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events