I resolved this issue.
Deleted the file
D:\ArcGIS\java\manager\service\tomcat\managerappserver\work\Catalina\localhost\arcgis_rest\org\apache\jsp\www\geometryserver\geometryserver_002djson_jsp.class
At my next visit to the json url of GeometryService, geometryserver_002djson_jsp.class file recreated with out any error.