We present a gravitational lensing study of the massive galaxy cluster A2219 (redshift 0.22). This investigation is based on multicolour images from U through H, which allows photometric redshifts to be estimated for the background sources. The redshifts provide useful extra information for the lensing models: we show how they can be used to identify a new multiple-image system (and rule out an old one), how this information can be used to anchor the mass model for the cluster, and how the redshifts can be used to construct optimal samples of background galaxies for a weak lensing analysis. Combining all results, we obtain the mass distribution in this cluster from the inner, strong lensing region, out to a radius of 1.5 Mpc. The mass profile is consistent with a singular isothermal model over this radius range. Parametric and non-parametric reconstructions of the mass distribution in the cluster are compared. The main features (elongation, sub-clumps, radial mass profile) are in good agreement.