Conveniently, my friend, I have been doing a little bit of study into the 5th commandment myself. I think I have a solution to what I think may be your problem:
[quote=jpk1313]The church teachs that the ends do not justify the means. that is it is not moral to commit a sin so that good my come.
I believe you perhaps refer to section 1753? That is, actions that are intrinsically wrong (lying and calumny for example) are never justifiable means regardless of the intention (willed end). From the CCC:
*"**1753 *A good intention (for example, that of helping one’s neighbor) does not make behavior that is intrinsically disordered, such as lying and calumny, good or just. the end does not justify the means. Thus the condemnation of an innocent person cannot be justified as a legitimate means of saving the nation. On the other hand, an added bad intention (such as vainglory) makes an act evil that, in and of itself, can be good (such as almsgiving)."
You then quote 2309 under the 5th commandment section, and follow it with this statement:
my biggest problem with this teaching of the church is that the church is supposed to be infallable when it comes to morality yet here is a teaching on morality that contradics another teaching.
As I see no contradiction myself you will have to point to me where you think one is. I suspect you perhaps think something along these lines:
**1.) **The means do not justify the ends (means that involve bad things are always wrong)
**2.) **War involves bad things
3.) The Church preaches the possibility of just war while holding 1.
If so, your problem is 1. 1753 seems to only say “intrinsically disordered” behavior can never be a justifiable means. Therefore, it seems to me the Church does not say your means can’t carry unfortunate evils that FOLLOW from the behavior as an unfortunate consequence (just war for example), but rather she says the behavior itself cannot be wrong if it is your means. However, some behaviors are not intrinsically disordered (not wrong in themselves) yet involve unfortunate things, such that these unfortunate consequences require the good produced by the behavior outweigh those evil consequences. That is, the intention (end willed) must be objectively good if the means carry unfortunate things. If the means are wrong in themselves, however, it doesn’t matter how good your intention is, it is forbidden.
Lets look at the taking of human life. Doing it for the sake of killing would always be wrong. 2268, however, is not a condemnation of all behaviors that involve killing, but rather intentional (willing as an end; rather than means) killing (note: that area contains other ways killing is wrong, such as 2269). This suggests that not all taking of life is intrinsically disordered behavior. Your indication of just war is such an instance where taking of life is not so (death penalty would be another in some rare instances). Therefore, there is no contradiction between these two teachings at all. Taking life can be a legitimate means in some rare circumstances. At least that is my fallible reading of it and it appears to me to be very sound ;).
The language of just war (and the 5th commandment) can be confusing as it suggests we must balance these unfortunate evils of war with the ends. It sounds like ends justifying the intrinsically disordered means. But we must remember that the taking of life is not intrinsically disordered. There is such thing as the possibility of just execution. It is unfortunate that one die, but that act of execution is not wrong in itself, it only becomes wrong if that unfortunateness of death is not outweighed by the good of it (Such is ironically the case if it is willed as its own end just under that ‘weighing’ factor since there would be no good to outweigh the unfortunateness of taking life.)
I hope that helps you find some relief my friend. I know how distressing these things can be. Perhaps, though, it might be helpful to reflect on the phrase of St. Anselm “Fides Quaerens Intellectum” (the other way, understanding seeking faith, is impossible and leads to despair), as there will be many apparent contradictions you may find in the Church teaching, but I have yet to find a true contradiction. Always put faith to reason (to avoid ‘drinking the coolaid’ so to speak), but understand reason only stands at all when there is faith.