users@jersey.java.net

[Jersey] Netbeans CustomerDB sample JSON web app

From: Rob Koberg <rob.koberg_at_gmail.com>
Date: Wed, 29 Feb 2012 17:35:28 -0800

Hi,

I am getting these JS errors when running the CustomerDB sample app
that comes with Netbeans 7.1:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/CustomerDB/resources/discountCodes/?expandLevel=0&start=0&max=50&timestamp=1330565405728Failed
to load resource: the server responded with a status of 404 (Not
Found)
Customer.js:264Uncaught TypeError: Cannot call method 'getUri' of undefined
GET http://localhost:8080/CustomerDB/resources/customers/?expandLevel=0&start=0&max=50&timestamp=1330565449174
404 (Not Found)

What I did was add the sample as a project in Netbeans, 'Clean and
Build', and then 'Run'. After the initial page launched, I clicked the
Add button and added a customer. This just left me hanging with no
indication of success or failure (but get the above JS errors except
the last line). Then returned using the '<Go back' link and got back
to the main page (and received the error shown in the last line
above).

-Rob