You are running your HTML from a different host than the host you are requesting. Because of this, you are getting blocked by the same origin policy.
One way around this is to use JSONP. This allows cross-site requests.
In JSON, you are returned:
In JSONP, the JSON is wrapped in a function call, so it becomes a script, and not an object.
For example: http://localhost:8080/restws/json/product/get?callback=process should output: