users@jersey.java.net

[Jersey] Re: RESTful Web services with GlassFish 3.1 ?

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Thu, 02 Dec 2010 15:10:36 +0100

Hello Paul,

I followed your steps and..

- curl:

$ curl http://localhost:8080/WebApplication2/resources/application.wadl
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://research.sun.com/wadl/2006/10">
<doc xmlns:jersey="http://jersey.dev.java.net/"
jersey:generatedBy="Jersey: 1.5-ea03 10/22/2010 12:26 PM"/>
<resources base="http://localhost:8080/WebApplication2/resources/">
<resource path="generic">
<method id="get" name="GET">
<response>
<representation mediaType="text/plain"/>
</response>
</method>
<method id="getXml" name="GET">
<response>
<representation mediaType="application/xml"/>
</response>
</method>
<method id="putXml" name="PUT">
<request>
<representation mediaType="application/xml"/>
</request>
</method>
</resource>
</resources>
</application>

- "test restful web services"

opened some webpage and my resource was visible and testable by this client.

So.. comment from netbeans guy seems to be invalid (I used netbeans 7.0
beta).

What should I do now? comment referenced issue?

Pavel


On 12/2/10 11:07 AM, Paul Sandoz wrote:
> Hi Pavel,
>
> On Dec 2, 2010, at 11:00 AM, Pavel Bucek wrote:
>
>> Can you provide more detailed steps to reproduce? I tried it but the
>> description is too brief for me - I actually don't even know which
>> project I should create..
>>
>
> Try the following:
>
> 1) Create a Web app then add a JAX-RS resource class using the
> creation wizard.
>
> 2) Do a curl to the web app to check that WADL is returned.
>
> 3) Right click on the newly created project and click on "Test RESTful
> Web Services".
>
> those are the steps in NBs 6.9.1 i have not tried NBs 7.0.
>
> Also it would be useful to enable logging/tracing to see what NBs 7.0
> is doing in terms of interacting with the app.
>
> Paul.
>
>> We continuously test several application and check for
>> application.wadl is always included.
>>
>> Or, if you want, just send me generated application and I'll give it
>> a try on my local glassfish instance.
>>
>> Pavel
>>
>> On 12/1/10 4:55 PM, Arun Gupta wrote:
>>> Can you please update the bug report
>>> (http://netbeans.org/bugzilla/show_bug.cgi?id=192733) accordingly ?
>>>
>>> application.wadl was not generated with NetBeans 7.0 Beta +
>>> GlassFIsh 3.1 for me.
>>>
>>> -Arun
>>>
>>> On 12/1/10 8:59 AM, Pavel Bucek wrote:
>>>> no - we are continuously testing jersey with glassfish so this
>>>> statement
>>>> (as is) is not true.
>>>>
>>>> Are there any more details about this?
>>>>
>>>> Pavel
>>>>
>>>> On 12/1/10 2:47 PM, Arun Gupta wrote:
>>>>> Is this a known issue with GlassFish 3.1 ?
>>>>>
>>>>> -Arun
>>>>>
>>>>> -------- Original Message --------
>>>>> Subject: [Bug 192733] application.wadl not generated for REST Web
>>>>> services
>>>>> Date: Wed, 01 Dec 2010 12:05:45 +0000
>>>>> From: ads_at_netbeans.org <mailto:ads_at_netbeans.org>
>>>>> To: arungupta_at_netbeans.org <mailto:arungupta_at_netbeans.org>
>>>>>
>>>>> http://netbeans.org/bugzilla/show_bug.cgi?id=192733
>>>>>
>>>>>
>>>>> Denis Anisimov <ads_at_netbeans.org <mailto:ads_at_netbeans.org>> changed:
>>>>>
>>>>> What |Removed |Added
>>>>> ----------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> Status|NEW |RESOLVED
>>>>> Resolution| |INVALID
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --- Comment #1 from Denis Anisimov <ads_at_netbeans.org
>>>>> <mailto:ads_at_netbeans.org>> 2010-12-01
>>>>> 12:05:45 ---
>>>>> wadl file is not generated by IDE.
>>>>> It could be generated by J2EE container when RESTful webservice is
>>>>> deployed.
>>>>>
>>>>> I believe this issue has been discovered with Glassfish 3.1 which is a
>>>>> buggy
>>>>> ( RESTful webservices doesn't work ).
>>>>> And the way how it have been seen : test client generated by NB
>>>>> doesn't work.
>>>>> The problem is not just wadl but completely not working RESTful
>>>>> webservices
>>>>> functionality on GF3.1.
>>>>> Please file a bug against GF.
>>>>>
>>>>
>>>
>>
>