users@jersey.java.net

Re: [Jersey] Build issues

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 23 Feb 2009 09:11:07 +0100

On Feb 22, 2009, at 7:12 PM, Jakub Podlesak wrote:

>
> Hi Eric,
>
> On Sat, Feb 21, 2009 at 06:00:04PM -0600, Marsh Eric wrote:
>> Hi Paul,
>>
>> I'm trying to build 1.0.2 and I'm close but seem to have a few
>> missing
>> symbols. I'm probably pulling down the wrong jar files. Can you
>> point me at
>
> You should not pull any jar files of your own.

Right, the source jars are only for debugging and viewing purposes.


>
> Maven should take care of it.
>
> Everything you need to build jersey 1.0.2 is:
>
> svn checkout https://jersey.dev.java.net/svn/jersey/tags/jersey-1.0.2/jersey
> cd jersey
> mvn clean install
>

With maven version 2.0.9 or greater.

Paul.

> do you still experience issues?
>
>> the right versions for the current build?
>>
>> Thanks,
>>
>> Eric
>>
>> Compiling 449 source files to
>> /Users/emarsh/Development/java/HereIAmDb/build/web/WEB-INF/classes
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> api/json/JSONJAXBContext.java:256:
>> cannot find symbol
>> symbol : variable RETAIN_REFERENCE_TO_INFO
>
> In this case, you are trying to build against jaxb-imp-2.1.9, while
> jersey 1.0.2 needs jaxb-impl-2.1.10
>
> If you are downloading the dependencies of your own, please try again
> with proper jaxb-impl version.
>
> HTH,
>
> ~Jakub
>
>> location: class com.sun.xml.bind.v2.runtime.JAXBContextImpl
>> jaxbContext = JAXBContext.newInstance(classesToBeBound,
>> new
>> HashMap<String,Object>(1)
>> {{put(JAXBContextImpl.RETAIN_REFERENCE_TO_INFO,
>> Boolean.TRUE);}});
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> api/json/JSONJAXBContext.java:306:
>> cannot find symbol
>> symbol : variable RETAIN_REFERENCE_TO_INFO
>> location: class com.sun.xml.bind.v2.runtime.JAXBContextImpl
>> myProps.put(JAXBContextImpl.RETAIN_REFERENCE_TO_INFO,
>> Boolean.TRUE);
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> api/json/JSONJAXBContext.java:345:
>> cannot find symbol
>> symbol : variable RETAIN_REFERENCE_TO_INFO
>> location: class com.sun.xml.bind.v2.runtime.JAXBContextImpl
>> jaxbContext = JAXBContext.newInstance(contextPath,
>> Thread.currentThread().getContextClassLoader(), new
>> HashMap<String,Object>(1)
>> {{put(JAXBContextImpl.RETAIN_REFERENCE_TO_INFO,
>> Boolean.TRUE);}});
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> api/json/JSONJAXBContext.java:411:
>> cannot find symbol
>> symbol : variable RETAIN_REFERENCE_TO_INFO
>> location: class com.sun.xml.bind.v2.runtime.JAXBContextImpl
>> myProps.put(JAXBContextImpl.RETAIN_REFERENCE_TO_INFO,
>> Boolean.TRUE);
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> api/json/JSONJAXBContext.java:428:
>> cannot find symbol
>> symbol : variable RETAIN_REFERENCE_TO_INFO
>> location: class com.sun.xml.bind.v2.runtime.JAXBContextImpl
>>
>> workProperties.put(JAXBContextImpl.RETAIN_REFERENCE_TO_INFO,
>> Boolean.TRUE);
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> json/impl/reader/Jackson2StaxReader.java:293:
>> cannot find symbol
>> symbol : method getCurrentExpectedElements()
>> location: class
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext
>> for (QName n :
>> UnmarshallingContext.getInstance().getCurrentExpectedElements()) {
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> json/impl/writer/Stax2JacksonWriter.java:236:
>> cannot find symbol
>> symbol : method getCurrentProperty()
>> location: class com.sun.xml.bind.v2.runtime.XMLSerializer
>> final Property cp = (xs == null) ? null :
>> xs.getCurrentProperty();
>> /Users/emarsh/Development/java/HereIAmDb/src/java/com/sun/jersey/
>> json/impl/writer/Stax2JacksonWriter.java:237:
>> cannot find symbol
>> symbol : method getInfo()
>> location: interface com.sun.xml.bind.v2.runtime.property.Property
>> final RuntimePropertyInfo ri = (cp == null) ? null :
>> cp.getInfo();
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>