I started learning JavaEE yesterday and I chose an Oracle official guide FirstCup to get started
I'm using Netbeans 7.2 with GlassFish Server 3.1.2.2 and I'm sure I followed every instruction step by step. But I have two problems:
- I didn't see any REST Resources Configuration dialog as it says in the doc.
I got an 404 error in the end. But if I change the url to
http://localhost:8080/DukesAgeService/webresources/dukesAge
It works! I got this url by expanding RESTful Web Services->Right clicking DUkesAgeResource [dukesAge] ->Test Resource Uri
I want to know:
where I can find this REST Resources Configuration dialong in 1.
if 2 is a print mistake in Oracle the documentation. It says the relative url should be
/resources/dukesAge
Why the url must end with
/webresources/dukesAge
, can I change it?