From the OED:
war: a. Hostile contention by means of armed forces, carried on between nations, states, or rulers, or between parties in the same nation or state; the employment of armed forces against a foreign power, or against an opposing party in the state. (emphasis added)
Going to court – an institution that provides a peaceful alternative to armed conflict – is pretty much the opposite of “war”.