The just war theory has been a long held Christian principle. It goes back to Sts. Augustine and Thomas Aquinas.
Right now I can't think any war that was not just to someone or other.