A San Diego jury deadlocked Monday in the retrial of a Navy commander accused of attempting to rape a junior officer.