Retry by correcting url
setting value to '/new/webresources/generic/1'
like this:
$.ajax({
url: '/new/webresources/generic/1',
success: function() { alert('PUT completed'); }
});
According to your updated Java code of web service implementation, you should refer to answer of How correctly produce JSON by RESTful web service to find the correct java code.