It would be fair to say that it has been infallibly settled by the Church’s ordinary Magisterium that there are just wars. However, the details of when a just war exist is still a subject of doctrinal development.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.