Clashes broke out between protesters and the police during a court-monitored survey of a Centuries-old mosque.