dev@jersey.java.net

Re: Compiling Jersey from Subversion

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 07 Jan 2008 11:48:41 +0100

CC'ing, as Cliet is not a member of the dev list.

Jakub Podlesak wrote:
> Hi Clint,
>
> could you please provide some details?
> Compilation log? Java version?
>
> Please see attached log. After a fresh checkout
> i am able to build the project just fine
> ( % svn co $JERSEY_REP ; cd jersey ; ant ).
>
> Using jdk 1.5.11, ant 1.7.0.
>

My guess is Clint is using JAXB version that is as part of SE 6? (namely
JAXB 2.0 API). In that API there is no method for:

     Marshaller.marshal(Object, File)

Compare the Marshaller of 2.1 [1] with 2.0 [2].

Jersey is using and provides the JAXB 2.1 API. (IIRC JAXB 2.1 will be
available in a stable update release of SE 6 at some point).

Hmm... we could easily change this so JAXB 2.0.x and 2.1.x are
supported. In the 0.4 release we did have a runtime dependency on the
2.1.x RI but now i don't think we do.

Paul.

[1]
https://jaxb.dev.java.net/nonav/2.1.5/docs/api/javax/xml/bind/Marshaller.html
[2]
https://jaxb.dev.java.net/nonav/2.0.4/docs/api/javax/xml/bind/Marshaller.html

> Thanks,
>
> ~Jakub
>
> On Sun, Jan 06, 2008 at 07:20:58PM -0500, Clint Combs wrote:
>> I just downloaded the latest sources from Subversion. It compiled fine w/
>> one exception. There's a call to
>>
>> m.marshal(a, wadlFile);
>>
>> in com.sun.ws.rest.api.wadl.WadlGeneratorTask.execute(). It looks like it's
>> expecting a different version of JAXB(?). Does anyone have an info on this?
>>
>> Thanks,
>> Clint Combs
>> http://www.ccombs.net/
>> clint_at_ccombs.net
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109