This appeal marks the fourth time that Dennis O’Neill (O’Neill) has been before this court concerning matters related to six water rights decreed in 1912 to three ditches: the Cache Creek, Arlington, and Clear Creek Ditches. In
Southeastern Colorado Water Conservancy District v. Twin Lakes Associates, Inc.,
Once again, O’Neill is before this court attempting to revive the six abandoned water rights by claiming that the water court in O’Neill I lacked jurisdiction to determine whether the water rights had been abandoned. And once again, we reject O’Neill’s claims. We affirm the water court’s judgment dismissing O’Neill’s complaint, and because O’Neill has brought another claim that lacks substantial justification, we affirm the water court’s award of attorney fees, grant attorney fees for defending this appeal to appellee, and remand this case to the water court for determination of the amount of fees due.
I.
These six water rights were appropriated prior to the turn of the century, and they were decreed on March 18, 1912, to Twin Lakes Placers, Limited, a British corporation licensed to do business in Colorado. On June 24, 1912, an injunction was entered against Twin Lakes because their large-scale hydraulic mining process polluted the Arkansas river, rendering the water unfit for human consumption. Consequently, these six water rights were abandoned.
See O’Neill I,
On successive occasions, O’Neill has tried to employ various legal theories to revive these abandoned water rights. This time, O’Neill filed this action against the state engineer, seeking an injunction and damages regarding these water rights because the water court in O’Neill I lacked subject matter jurisdiction. O’Neill contends that O’Neill I is void because of defective service of process and because the O’Neill I court’s judgment represented a collateral attack on the possessory and use rights previously determined by various prior quiet title decrees in 1916, 1930, 1954, and 1957. 2 The water *1123 court dismissed O’Neill’s claim under C.R.C.P. 12(b)(5) for failure to state a claim upon which relief could' -be granted and awarded attorney fees against O’Neill. We now affirm.
II.
In evaluating a motion to dismiss under C.R.C.P. 12(b)(5)
3
, all averments of material fact must be accepted as true and allegations must be viewed in the light most favorable to the plaintiff.
See Dorman v. Petrol Aspen, Inc.,
Prior to our decision affirming the water court in O’Neill I, the water court expressly found that it had feubject matter jurisdiction. O’Neill was a party to that proceeding, and he had a full and fair opportunity to litigate that issue in the water court as well as when he appealed in O’Neill I. Because there is no manifest injustice presented here, O’Neill is barred from asserting his jurisdictional claims. As the United States Supreme Court stated:
A party that has had an opportunity to litigate the question of subject matter jurisdiction may not, however, reopen that question in a collateral attack upon an adverse judgment. It has long been the rule that principles of res judicata apply to jurisdictional determinations — both subject matter and personal.
Insurance Corp. of Ireland, Ltd. v. Compagnie des Bauxites de
Guinee,
III.
Litigation that lacks substantial justification burdens the courts, strains the judicial system, and interferes with the effective administration of justice.
See
§ 13-17-101, 5 C.R.S. (1997). Pursuant to section 13-17-102, 5 C.R.S. (1997), attorney fees are warranted in such a ease if the action is “substantially frivolous, substantially groundless, or substantially vexatious.”
Id.; see also O’Neill III,
Notes
. O’Neill also filed a complaint in federal district court, regarding these water rights, alleging claims under 42 U.S.C. §§ 1983, 1985, & 1988 (1994). On March 16, 1995, in case No. 94-Z-2868, the federal district court dismissed the claims for failure to provide the required "short and plain statement.” Moreover, the court stated:
However, even if plaintiff had set forth recognizable claims, the claims would be barred by numerous grounds for dismissal, including the doctrine of collateral estoppel.
[[Image here]]
[Pllaintiff is given a stem warning that if he chooses to relitigate these same claims under other or similar non-meritorious grounds [before the federal district court] the Court will seriously consider severe penalties.
. O'Neill's claims refer to a 1916 decree quieting title to the Cache Creek and Clear Creek Ditches and water rights appropriations; a 1930 decree quieting title to the Arlington ditch water rights appropriations; a 1954 decree quieting title to a *1123 portion of the subject water rights; and a 1957 decree quieting title to a portion of the subject water rights.
. The C.R.C.P. 12(b)(5) defense is a "failure to state a claim upon which relief can be granted.”
. Res judicata, or claim preclusion, bars subsequent claims by identical parties based on the same claim for relief after there has been a final judgment on the merits.
See Kuhn v. State, Dep’t of Revenue,
.Collateral estoppel, or issue preclusion, bars relitigation of an issue determined in a prior proceeding if: (1) the issue precluded is identical to an issue actually determined in the prior proceeding; (2) the party against whom estoppel is asserted has been a party to or is in privity with a party in the prior proceeding; (3) there is a final judgment on the merits in the prior proceeding; and (4) the party against whom the doctrine is asserted has had a full and fair opportunity to litigate the issue in the prior proceeding.
See Maryland Cas. Co. v. Messina,
