I find the only real disadvantage to being excommunicated is crusades, which can be annoying especially if you are not a central catholic power. If you are big enough then excommunication won't hurt you too much. I think alliances ~seem~ to be somewhat effective at preventing factions from attacking you.