Are you saying the judge issued the warrant without the sworn testimony of an accuser? If he did that, then yes, he should be prosecuted.
The judge could simply say who testified. Either the name is given up of the judge should be penalized.