users@jersey.java.net

Re: [Jersey] Re: Comment: Jersey 1.0 is released

From: Jeff Schmidt <jas_at_535consulting.com>
Date: Mon, 27 Oct 2008 09:07:16 -0600

Hi Paul:

I can confirm on my system the same thing you did:

[jaslap:/Applications/NetBeans/NetBeans 6.5 RC1.app] jas% jar ft
`find . -name "*311*jar"` | grep Produces.class
javax/ws/rs/Produces.class
[jaslap:/Applications/NetBeans/NetBeans 6.5 RC1.app] jas%

But as far as Netbeans itself is concerned, it calls the libraries
"Jersey 1.0" but they appear to be 0.8-ish, which is what was present
in Netbeans 6.1. I removed the REST Web Service plugin from both
Netbeans 6.1 and 6.5. I then added the plugin back in 6.5, restarted
the IDE etc. Even so, the problem remains.

Within the Netbeans 6.5 project viewer, if you click down in your
project into Libraries/JAX-RS 1.0 - jsr11-api.jar/javax.ws.rs do you
see ConsumeMime.class or Consumes.class?

Just FYI, I'm running Mac OS 10.5.4, and I DO NOT have Apple's latest
Java update installed (deadline vs. too many stores of broken Java
apps).

Thanks,

Jeff

On Oct 27, 2008, at 1:41 AM, Paul Sandoz wrote:

> Hi Jeff,
>
> I have RC 1 installed on my Mac and have the correct version:
>
> paul-sandozs-macbook-pro:NetBeans 6.5 RC1.app paulsandoz$ pwd
> /Applications/NetBeans/NetBeans 6.5 RC1.app
> paul-sandozs-macbook-pro:NetBeans 6.5 RC1.app paulsandoz$ jar ft
> `find . -name "*311*jar"` | grep Produces.class
> javax/ws/rs/Produces.class
>
>
> I wonder if there is an issue with 0.8 obtained via the plugin and
> installed on earlier versions of NBs and 1.0 that comes bundled with
> NB RC 1?
>
> Paul.
>
> On Oct 24, 2008, at 9:59 PM, Jeff Schmidt wrote:
>
>> Hi Paul:
>>
>> I just downloaded and installed Netbeans 6.5 RC1. It looks like it
>> includes JSR 311/Jersey 1.0. But I was getting compilation errors
>> in my code, and in the libraries for the project:
>>
>> <Picture 7.png>
>>
>> if the attached image does not appear in the email, it shows JAX-RS
>> 1.0 - jsr311-api.jar, and within the jaxax.ws.rs package, it is
>> showing the annotation classes called ConsumeMime and ProduceMime
>> rather than Consumes and Produces. This looks like 0.8 level stuff.
>> I did check for updates, and I'm told my IDE is up to date.
>>
>> Thanks,
>>
>> Jeff
>>
>> On Oct 14, 2008, at 12:51 AM, Paul.Sandoz_at_Sun.Com wrote:
>>
>>> Paul Sandoz wrote:
>>>
>>> @Araron, @Jeff, thanks very much for the kind feedback.
>>>
>>> Re: NetBeans. I don't know if NB 6.1 will have plugin support for
>>> Jersey 1.0, i will check. The only way to currently get the latest
>>> plugin bits is via the NB 6.5 development builds.
>>>
>>> You can modify a dependent NB project to use the Jersey 1.0
>>> artifacts in your library settings. However, there have been API
>>> changes from 0.8 to 1.0 and the NB 6.1 plugin will be affected by
>>> those changes (e.g. @ProduceMime in 0.8 is now @Produces in 1.0).
>>>
>>> ----
>>> Respond to this comment at:
>>> http://blogs.sun.com/sandoz/entry/jersey_1_0_is_released#comments
>>
>> --
>> Jeff Schmidt
>>
>>
>>
>>
>



--
Jeff Schmidt
535 Consulting
jas_at_535consulting.com
(408) 205-7697