users@jersey.java.net

Re: Build failure

From: Richard Wallace <rwallace_at_thewallacepack.net>
Date: Thu, 28 Feb 2008 09:48:28 -0800

Downloading to JDK 5 solved the problem so that must have been it. I
think I've run into this with another project as well. So annoying that
Sun insists on throwing everything into the runtime.

Thanks,
Rich

Paul Sandoz wrote:
> Hi Richard,
>
> I think this might be a JRE 6 issue and a JAXB version clash, what
> version of JRE 6 are you using?
>
> I built using:
>
> java version "1.6.0_04"
> Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
>
> with no issues. Our continuous build system has not reported any
> errors (it builds using JDK 5 and pushes those builds out to java.net)
>
> IIUC JRE 6 update 4 has the JAXB 2.1 APIs, previous updates had the
> JAXB 2.0 APIs and of course the ones in the JRE take precendence over
> JAXB 2.1 jars in the user-defined class path. The latest JSON code has
> introduced a direct dependency on JAXB 2.1 APIs.
>
> If i am correct, you will need to downgrade to JRE 5, upgrade to JRE 6
> update 4, or put the JAXB 2.1 jars in the boot classpath of your
> existing JRE 6 installation.
>
> Paul.
>
> Richard Wallace wrote:
>> Hello,
>>
>> I'm trying to build the latest version of jersey from svn so I can
>> improve my Guice integration - I've got some ideas about how to get
>> Guice to be able to inject @UrlInfo params that I want to play with.
>> But I'm getting the following build error
>>
>> [javac]
>> /home/rwallace/Development/jersey-trunk/jersey/src/impl/com/sun/ws/rest/impl/json/JSONMarshaller.java:97:
>> cannot find symbol
>>
>> [javac] symbol : method marshal(java.lang.Object,java.io.File)
>>
>> [javac] location: interface javax.xml.bind.Marshaller
>>
>> [javac] jaxbMarshaller.marshal(jaxbObject, file);
>>
>> [javac] ^
>>
>>
>> I've cleaned out my build directory, completely blown away the source
>> and done a fresh checkout and am still running into this.
>> Any ideas?
>>
>> Rich
>>
>> P.S. I'm running on Ubuntu Linux 8.04 with the Sun 1.6 sdk.
>>
>> $ java -version
>> java version "1.6.0_03"
>> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
>> Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>