You cannot register for a fortress war while the castle in your possession is allied with the fortress.