users@jersey.java.net

Re: [Jersey] No Restful file type in NB 6.7 & Glassfish3 on Mac OS X

From: Doug Graham <duggram_at_gmail.com>
Date: Thu, 9 Jul 2009 08:42:51 -0600

Paul,

Thank you for the reply. Here's the link to the tutorial where they talk
about setting up the environment:

http://java.sun.com/javaee/6/docs/firstcup/doc/p3.html

The Web project was created as described on this page:

http://java.sun.com/javaee/6/docs/firstcup/doc/p5.html

There is this line "To create DukesAgeResource, use the wizard provided by
the JAX-RS plug-in for NetBeans 6.7 IDE to generate the resource class." I
don't understand this line.

But in a section just below this the directions say:
"Create the DukesAgeResource Class

   1. *Make sure dukes-age is selected in the Project menu.*
   2. *Select File→New File.*
   3. *Select Web Services in the Categories pane.*
   4. *Select RESTful Web Services From Patterns in the File Types pane.*
   5. *Click Next.*"


Mean while I'll be trying your example.

Thank you,
Doug

On Thu, Jul 9, 2009 at 8:09 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

> Hi Doug,
>
> What type of project did you created? did you create Web project ? AFAIK
> the creation wizards will only work for Web projects (maven or ant based).
>
> For example if you download:
>
>
> http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.1.0-ea/helloworld-webapp-1.1.0-ea-project.zip
>
> unzip it and load it into NB 6.7, right click on the "Source
> Packages"->New->Other... then select Web Services you should see a list of
> "RESTful" file types.
>
> Do you have a link to the tutorial?
>
> Paul.
>
>
> On Jul 9, 2009, at 3:26 PM, Doug Graham wrote:
>
> I understand that this is most likely a Netbeans issue, but I'm desperate
>> for help. Maybe you've seen this problem and have a solution.
>>
>> Following the Sun GuessDukesAge tutorial for a first app I try to "Create
>> the DukesAgeResource Class". Click new file, select Web Services in the
>> Categories pane. However, when I try to select Restful from the file type
>> there's no Restful. Only 6 other types.
>>
>> I have uninstalled it and reinstalled Jersey Restful. Rebooted NB a lot.
>> No results.
>>
>> Any suggestions?
>>
>> thank you,
>> Doug
>>
>>
>