Chaos and Solitons in Josephson Junctions