Described herein are compounds that are useful as protein kinase
inhibitors having the formulae I and V: ##STR00001## or a
pharmaceutically acceptable salt thereof, wherein Ring B, Z.sup.1,
Z.sup.2, U, T, m, n, p, Q, Q', R.sup.1, R.sup.2, R.sup.x, R.sup.3, and
R.sup.6 are as defined herein. These compounds, and pharmaceutically
acceptable compositions thereof, are useful for treating or lessening the
severity of a variety of disorders, including stroke, inflammatory
disorders, autoimmune diseases such as SLE lupus and psoriasis,
proliferative disorders such as cancer, and conditions associated with
organ transplantation.