users@jersey.java.net

[Jersey] Re: Netbeans CustomerDB sample JSON web app

From: John Yeary <johnyeary_at_gmail.com>
Date: Sat, 3 Mar 2012 12:12:19 -0500

I verified that this not working and created a bug for it.

http://netbeans.org/bugzilla/show_bug.cgi?id=209127

John
____________________________

John Yeary
____________________________

<http://javaevangelist.blogspot.com/> <https://twitter.com/jyeary>
<http://www.youtube.com/johnyeary>
  <http://www.linkedin.com/in/jyeary>
<https://plus.google.com/112146428878473069965>
  <http://www.facebook.com/jyeary>
<http://feeds.feedburner.com/JavaEvangelistJohnYearysBlog>
  <http://netbeans.org/people/84414-jyeary>
____________________________

"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt



On Wed, Feb 29, 2012 at 8:35 PM, Rob Koberg <rob.koberg_at_gmail.com> wrote:

> 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
>