
    Concerned Citizens of Kimball County, Inc., appellant, v. Department of Environmental Control of the State of Nebraska and Waste-Tech Services, Inc., appellees.
    505 N.W.2d 654
    Filed September 3, 1993.
    No. S-91-553.
    
      Mark A. Ludwig, of Germer, Murray & Johnson, for appellant.
    Don Stenberg, Attorney General, and Linda L. Willard for appellee Department.
    Mark A. Christensen, of Cline, Williams, Wright, Johnson & Oldfather; Marcus L. Squarrell and Robert E Copple, of Parcel, Mauro, Huitín & Spaanstra, P.C.; and Ruth Brammer Johnson for appellee Waste-Tech.
    Boslaugh, White, Caporale, Shanahan, Fahrnbruch, and Lanphier, JJ., and Grant, J., Retired.
   Per Curiam.

Concerned Citizens of Kimball County, Inc., filed an action under the Uniform Declaratory Judgments Act, Neb. Rev. Stat. §§ 25-21,149 to 25-21,164 (Reissue 1989), challenging the Nebraska Department of Environmental Control’s issuance of a permit to build a hazardous waste incinerator.

On October 27, 1987, Waste-Tech Services, Inc. (Waste-Tech), filed a permit application with the Nebraska Department of Environmental Control (Department), seeking a permit to build and operate a hazardous waste incineration and storage facility in Kimball County. The application listed Waste-Tech as the operator of the facility and Thermal, Inc. (Thermal), as the owner of the real estate on which the facility was to be built. During the public comment period before issuance of the permit, Waste-Tech requested that the final permit designate Gus Koustas and George Koustas as owners of the Kimball facility. The Koustases were the officers and sole shareholders of Thermal. On November 17, 1988, the Department issued the final permit, which listed Waste-Tech as operator and the Koustases as owners.

On November 30, 1988, Amoco Oil Holding Company (Amoco), Waste-Tech’s corporate parent, purchased the Koustases’ interest in the Kimball facility. Subsequently, Amoco transferred its interest to Waste-Tech, making Waste-Tech both owner and operator of the facility. In a letter dated December 6,1988, Waste-Tech informed the Department that it had acquired title to the property.

On December 3, 1990, Concerned Citizens of Kimball County, Inc. (Concerned Citizens), filed a petition for declaratory relief in the district court for Lancaster County. In its petition, Concerned Citizens alleged that its members are Kimball County residents and landowners with interests in real estate in close proximity to the site of the proposed facility and that its members will suffer diminished real estate values and potential health hazards if the facility is built. The amended petition further contended that the Department’s issuance of the permit was unlawful because the Department had no authority to issue the permit to the Koustases as owners when the application had been filed by Waste-Tech. Therefore, the petition sought a declaration that the permit was void at its inception and could not legally be transferred to Amoco or Waste-Tech and that there is currently no valid permit for the Kimball facility.

The Department filed a demurrer to Concerned Citizens’ petition on the grounds that the district court had no subject matter jurisdiction and that Concerned Citizens was not a proper plaintiff. Waste-Tech filed a motion for summary judgment. The district court sustained the Department’s demurrer on both grounds mentioned in the demurrer and dismissed the action against the Department. The court also granted Waste-Tech’s summary judgment motion and dismissed the action with prejudice because (1) no genuine issues of material fact existed, (2) Concerned Citizens’ action was an improper collateral attack on the decision of an administrative agency, and (3) Concerned Citizens had no standing.

Concerned Citizens contends that the district court erred in (1) sustaining the Department’s demurrer to Concerned Citizens’ petition, (2) granting Waste-Tech’s motion for summary judgment, and (3) dismissing Concerned Citizens’ petition with prejudice.

Concerned Citizens contends that the district court erred in holding that the Department was immune from this declaratory judgment action because of the state’s sovereign immunity. The district court sustained the Department’s demurrer because the state’s sovereign immunity meant that the court had no subject matter jurisdiction.

Lack of subject matter jurisdiction is a proper ground for a demurrer to a petition. Neb. Rev. Stat. § 25-806 (Reissue 1989); Knapp v. City of Omaha, 175 Neb. 576, 122 N.W.2d 513 (1963).

Article V, § 22, of the Nebraska Constitution provides: “The state may sue and be sued, and the Legislature shall provide by law in what manner and in what courts suits shall be brought.” Article V, § 22, is not self-executing. Legislative action is necessary to waive the state’s sovereign immunity. See Gentry v. State, 174 Neb. 515, 118 N.W.2d 643 (1962). Since statutes authorizing suit against the state are in derogation of the state’s sovereignty, such statutes are strictly construed. See, Wiseman v. Keller, 218 Neb. 717, 358 N.W.2d 768 (1984); Catania v. The University of Nebraska, 204 Neb. 304, 282 N.W.2d 27 (1979), overruled on other grounds, Blitzkie v. State, 228 Neb. 409, 422 N.W.2d 773 (1988); Gentry v. State, supra; Anstine v. State, 137 Neb. 148, 288 N.W. 525 (1939), overruled on other grounds, Beatrice Manor v. Department of Health, 219 Neb. 141, 362 N.W.2d 45 (1985). Hence, “[w]aiver [of sovereign immunity] will only be found ‘where stated “by the most express language or by such overwhelming implications from the text as [will] leave no room for any other reasonable construction.” ’ ” Wiseman v. Keller, 218 Neb. at 720, 358 N.W.2d at 770 (quoting Edelman v. Jordan, 415 U.S. 651, 94 S. Ct. 1347, 39 L. Ed. 2d 662 (1974)). Accord Security Inv. Co. v. State, 231 Neb. 536, 437 N.W.2d 439 (1989).

Moreover, for purposes of applying the doctrine of sovereign immunity, a suit against an agency of the state is the same as a suit against the state. See, Beatrice Manor v. Department of Health, supra; State, ex rel. Walker, v. Board of Commissioners, 141 Neb. 172, 3 N.W.2d 196 (1942); Anstine v. State, supra.

However, a declaratory or other equitable action against a state officer or agent to obtain relief from an invalid act or from an abuse of authority by the officer or agent is not a suit against the state and is not prohibited by the general principles governing the immunity of the state from suit. See, Bartels v. Lutjeharms, 236 Neb. 862, 464 N.W.2d 321 (1991); Rein v. Johnson, 149 Neb. 67, 30 N.W.2d 548 (1947), cert. denied 335 U.S. 814, 69 S. Ct. 31, 93 L. Ed. 369 (1948); State, ex rel. Walker, v. Board of Commissioners, supra. See, also, Grinnell v. State, 121 N.H. 823, 435 A.2d 523 (1981); Lister v. Board of Regents, 72 Wis. 2d 282, 240 N.W.2d 610 (1976); Collins v. State Board of Social Welfare, 248 Iowa 369, 81 N.W.2d 4 (1957); Battleship Texas Ad. Bd. v. Texas Dynamics, 737 S.W.2d 414 (Tex. Civ. App. 1987); Bagg v. Univ. of Texas Medical Branch, 726 S.W.2d 582 (Tex. Civ. App. 1987); 1 Walter H. Anderson, Actions for Declaratory Judgments § 179 (2d ed. 1951). This exception to the rule of sovereign immunity exists because “acts of state officers not legally authorized, or which exceed or abuse the authority conferred upon them, are judicially regarded as their own acts and not acts of the state.” Rein v. Johnson, 149 Neb. at 69, 30 N.W.2d at 552. Cf. Ex parte Young, 209 U.S. 123, 28 S. Ct. 441, 52 L. Ed. 714 (1908) (federal court may enjoin a state officer without violating the 11th Amendment to the U.S. Constitution because this does not involve an action against a state).

Concerned Citizens’ petition indicates that this action was brought pursuant to the Uniform Declaratory Judgments Act, §§ 25-21,149 to 25-21,164. As the Department correctly points out, this court, in Offutt Housing Co. v. County of Sarpy, 160 Neb. 320, 322-23, 70 N.W.2d 382, 385 (1955), aff'd 351 U.S. 253, 76 S. Ct. 814, 100 L. Ed. 1151 (1956), held that the predecessor to Nebraska’s Uniform Declaratory Judgments Act did not waive the state’s sovereign immunity:

“Generally, an action for a declaratory judgment cannot be maintained against the state without its consent, the state’s immunity from suit being held unaffected by declaratory judgment statutes; but such an action may be maintained under statutes permitting various actions against the state.” 81 C. J. S., States, § 214, p. 1304, and authorities cited.

Hence, the current version of Nebraska’s Uniform Declaratory Judgments Act does not waive the State of Nebraska’s sovereign immunity.

Although Concerned Citizens could have sued the director of the Department pursuant to the Uniform Declaratory Judgments Act, see Rein v. Johnson, supra, Concerned Citizens may not rely on the Uniform Declaratory Judgments Act as a basis for declaratory relief against the State of Nebraska or a state agency. Consequently, if Concerned Citizens is to obtain declaratory relief against the Department, it must do so in accordance with statutory authority and a procedure other than the Uniform Declaratory Judgments Act.

Concerned Citizens argues that this declaratory action is authorized by Neb. Rev. Stat. § 25-21,206 (Reissue 1989), which provides in part: “The state may be sued in the district court of the county wherein the capital is situated in any matter founded upon or growing out of a contract, express or implied, originally authorized or subsequently ratified by the Legislature, or founded upon any law of the state.” Thus, by its plain terms, § 25-21,206 applies only to actions based on a contract. However, this court has held that permits or licenses are not contracts. See, Bosselman, Inc. v. State, 230 Neb. 471, 432 N.W.2d 226 (1988); Prucha v. Department of Motor Vehicles, 172 Neb. 415, 110 N.W.2d 75 (1961); Durfee v. Ress, 163 Neb. 768, 81 N.W.2d 148 (1957); Leeman v. Vocelka, 149 Neb. 702, 32 N.W.2d 274 (1948); Smith v. State, 124 Neb. 587, 247 N.W. 421 (1933). See, also, 53 C.J.S. Licenses § 3 at 322 (1987): “In general, a license is a means of regulating and taxing privileges and occupations and the use and disposal of property .... A license is not a contract or obligation between the authority, federal, state, or municipal, granting it and the person to whom it is granted.” Because the permit issued by the Department to Waste-Tech is not a contract, § 25-21,206 does not provide a statutory authorization for Concerned Citizens’ declaratory action against the Department.

We also consider whether Neb. Rev. Stat. § 84-911 (Reissue 1987), a part of Nebraska’s Administrative Procedure Act, waives the state’s sovereign immunity and authorizes the district cour t’s j urisdiction in this suit. Section § 84-911(1) states:

The validity of any rule or regulation may be determined upon a petition for a declaratory judgment thereon addressed to the district court of Lancaster County if it appears that the rule or regulation or its threatened application interferes with or impairs or threatens to interfere with or impair the legal rights or privileges of the petitioner. The agency shall be made a party to the proceeding. The declaratory judgment may be rendered whether or not the petitioner has first requested the agency to pass upon the validity of the rule or regulation in question.

Neb. Rev. Stat. § 84-901 (Reissue 1987) does not include an agency permit within the definition of a “rule or regulation” which is reviewable under the Administrative Procedure Act. Because the permit issued to Waste-Tech by the Department is not a rule or regulation for purposes of the Administrative Procedure Act, § 84-911 does not waive the state’s sovereign immunity so as to authorize Concerned Citizens’ declaratory judgment action.

As noted above, the State of Nebraska and its agencies are immune from a declaratory judgment action unless specifically authorized by a statute. Concerned Citizens has not referred this court to any statute that authorizes this action against the state, nor has our independent research located such a statute authorizing a declaratory judgment action under the circumstances. Therefore, we hold that the district court did not err in sustaining the Department’s demurrer because of lack of subject matter jurisdiction.

Concerned Citizens also contends that the district court erred in granting Waste-Tech’s motion for summary judgment. However, because we have determined that the district court correctly sustained the Department’s demurrer, we now hold that the action could not continue against Waste-Tech alone because the director of the Department is a necessary party.

Section 25-21,159 provides in part: “When declaratory relief is sought, all persons shall be made parties who have or claim any interest which would be affected by the declaration, and no declaration shall prejudice the rights of persons not parties to the proceeding.”

This court has held on numerous occasions that the statute authorizing declaratory judgments is applicable only where all interested and necessary persons are made parties to the proceeding. See, Omaha Pub. Power Dist. v. Nuclear Elec. Ins. Ltd., 229 Neb. 740, 428 N.W.2d 895 (1988); Shepoka v. Knopik, 197 Neb. 651, 250 N.W.2d 619 (1977); Baker v. A. C. Nelson Co., 185 Neb. 128, 174 N.W.2d 197 (1970); Berigan Bros. v. Growers Cattle Credit Corp., 182 Neb. 656, 156 N.W.2d 794 (1968); Marsh v. Marsh, 173 Neb. 282, 113 N.W.2d 323 (1962); Haynes v. Anderson, 163 Neb. 50, 77 N.W.2d 674 (1956); Redick v. Peony Park, 151 Neb. 442, 37 N.W.2d 801 (1949). “An indispensable party is one who has an interest in the controversy to an extent that such party’s absence from the proceedings prevents a court from making a final determination concerning the controversy without affecting such party’s interest.” Heithoff v. Nebraska State Bd. of Ed., 230 Neb. 209, 214, 430 N.W.2d 681, 684 (1988). Accord, Helter v. Williamson, 239 Neb. 741, 478 N.W.2d 6 (1991); Krohn v. Gardner, 238 Neb. 460, 471 N.W.2d 391 (1991); Koch v. Koch, 226 Neb. 305, 411 N.W.2d 319 (1987); Shepoka v. Knopik, supra. The presence of all necessary or indispensable parties is jurisdictional in a declaratory judgment action and cannot be waived by the parties. See, Shepoka v. Knopik, supra; Redick v. Peony Park, supra.

Concerned Citizens challenges the validity of the permit granted Waste-Tech by the director of the Department. This challenge necessarily raises the question whether the director of the Department acted within his statutory and regulatory powers. Since the director’s actions are being questioned, the director is an interested and necessary party in this declaratory judgment action. Therefore, the district court was without jurisdiction to consider the declaratory judgment action against Waste-Tech alone and did not err in granting Waste-Tech’s summary judgment motion.

Concerned Citizens maintains that the district court erred in dismissing its petition against Waste-Tech and the Department with prejudice, thereby denying Concerned Citizens the opportunity to replead and remedy any defects in its petition.

Neb. Rev. Stat. § 25-852 (Reissue 1989) states:

The court may, either before or after judgment, in furtherance of justice, and on such terms as may be proper, amend any pleading, process or proceeding, by adding or striking out the name of any party or by correcting a mistake in the name of the party, or a mistake in any other respect, or by inserting other allegations material to the case .... Whenever any proceeding taken by a party fails to conform, in any respect, to the provisions of this code, the court may permit the same to be made conformable thereto by amendment.

Neb. Rev. Stat. § 25-854 (Reissue 1989) provides: “If the demurrer be sustained, the adverse party may amend, if the defect can be remedied by way of amendment, with or without costs, as the court in its discretion shall direct.”

A trial court’s decision regarding amendments to the pleadings will be not be reversed on appeal absent an abuse of discretion. See St. Paul Fire & Marine Ins. Co. v. Touche Ross & Co., 234 Neb. 789, 452 N.W.2d 746 (1990).

When a demurrer to a petition is sustained, a court must grant a plaintiff leave to amend the petition unless it is clear that no reasonable possibility exists that repleading will correct the defective petition. After the demurrer has been sustained, but where there is a reasonable possibility that the defective petition may be cured by amendment, denying the plaintiff the opportunity to replead is an abuse of discretion. Wichman v. Naylor, 241 Neb. 249, 487 N.W.2d 291 (1992). See, Pappas v. Sommer, 240 Neb. 609, 483 N.W.2d 146 (1992); Kane v. Vodicka, 238 Neb. 436, 471 N.W.2d 136 (1991); Schmuecker Bros. Implement v. Sobotka, 217 Neb. 114, 348 N.W.2d 130 (1984).

Moreover, a summary judgment motion based on jurisdictional grounds is treated as and serves the same purpose as a demurrer on jurisdictional grounds. See, Kerndt v. Ronan, 236 Neb. 26, 458 N.W.2d 466 (1990) (judgment based on matter of jurisdiction is not “on the merits” and thus has no preclusive effect); Nelson v. Sioux City Boat Club, 216 Neb. 484, 344 N.W.2d 634 (1984) (absence of subject matter jurisdiction may be raised either by demurrer or by summary judgment motion). Therefore, a summary judgment motion based on a jurisdictional defect is treated the same as a demurrer based on a jurisdictional defect for purposes of applying the rule regarding repleading. Consequently, after a summary judgment motion on jurisdictional grounds has been granted, but where there is a reasonable possibility that the jurisdictional defect may be cured by amendment, denying the plaintiff the opportunity to replead is an abuse of discretion.

In the present case, it is necessary to determine whether there is a reasonable possibility that Concerned Citizens could amend its petition to cure the defect or defects in its petition and state a valid cause of action. Certainly, the defect relating to sovereign immunity of the state may be cured by making the director of the Department a party to the action. In addition, any defect regarding Concerned Citizens’ standing to sue on behalf of its members is curable. See, Nebraska Seedsmen Assn. v. Department of Agriculture & Inspection, 162 Neb. 781, 77 N.W.2d 464 (1956); Smithberger v. Banning, 130 Neb. 354, 265 N.W. 10 (1936) (an association which itself has no standing •must plead authority to appear on behalf of its members). See, also, Hunt v. Washington Apple Advertising Comm’n, 432 U.S. 333, 97 S. Ct. 2434, 53 L. Ed. 2d 383 (1977) (setting forth federal doctrine of associational standing which does not require an association to specifically allege authority to appear on behalf of its members).

Moreover, this action is not an improper collateral attack on the judgment of an administrative agency because neither Concerned Citizens nor its members were parties to the agency decision or in privity to a party to the agency action. See, Krohn v. Gardner, 238 Neb. 460, 471 N.W.2d 391 (1991) (the doctrine of res judicata precludes relitigation of a claim only if the parties to the present action are the same or in privity to the parties in the former action); Martin v. Wilks, 490 U.S. 755, 109 S. Ct. 2180, 104 L. Ed. 2d 835 (1989) (a person who was not a party or privy to a prior judgment may challenge the propriety of that judgment without engaging in an impermissible collateral attack).

Therefore, there is a reasonable possibility that Concerned Citizens could cure the jurisdictional defects and state a valid cause of action, alleging a violation of 128 Neb. Admin. Code, ch. 16, § 009.02L3 (1988), which states in part: “The permit is not transferable to any person, except in the case of treatment and storage facilities, after notice to the Director.” See, also, 40 C.ER. § 270.40 (1988) (changes in ownership or operational control of a facility operating under a Resource Conservation and Recovery Act permit require prior written notice). Consequently, the district court abused its discretion in dismissing Concerned Citizens’ petition with prejudice.

The district court’s judgments sustaining the demurrer of the Department and granting Waste-Tech a summary judgment on jurisdictional grounds are affirmed. However, the court’s order dismissing Concerned Citizens’ petition with prejudice is reversed, and this cause is remanded to the district court for further proceedings.

Affirmed in part, and in part reversed and REMANDED FOR FURTHER PROCEEDINGS.

Hastings, C.J., not participating.  