A contractor working on a gas line accidentally struck an 8-inch water line in Whitehall on Monday, causing water to shoot more than 30 feet in the air.