A federal judge has dismissed a lawsuit filed by more than a dozen current and former service members who say they were raped and abused by their comrades.

The suit was filed in February and named former defense secretaries Robert Gates and Donald H. Rumsfeld. Those who filed the suit said they wanted to force the Pentagon to change how it handles such cases. They say there is an atmosphere in the military conducive of rape and assaults.

U.S. District Judge Liam O'Grady in Alexandria, Va., says in an order dated Dec. 9 that the current and former troops don't have a right to sue under the law they cited.