I know of catapults on ships, but they were used against ground targets (by Alexander during the siege of Tyre, iirc by using two ships for each engine, and by Caesar against the Britanni). I didn't check the sources, so I am not sure of whether these machines threw stones or arrows.