I have seen this for two reasons when I created my own local server: 1) The base map is not in Web Mercator, or 2) My JSON is not quite right. This is usually a missing comma (,) or parenthesis ((). To check my JSON I place it in the following web page http://www.jslint.com/ This web site easily identifies the errors