users@jersey.java.net

Re: [Jersey] Jersey build error

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Thu, 04 Jun 2009 13:05:29 +0200

There was a small issue in the scala module pom file, which i have just
fixed (there were 2 versions of scala lib used there).
It should be all right for jdk 1.5, but something is still broken with
jdk1.6, related to

import xml.NodeSeq

i suspect, it has something to do with jaxb.

~Jakub

Paul Sandoz wrote:
> Hi Farrukh,
>
> Specifically you should be doing:
>
> rm -rf ~/.m2/repository/org/scala*
>
> I did the above in my environment then "mvn clean install", and it
> worked fine. So i dunno why you cannot build.
>
> Paul.
>
> On Jun 2, 2009, at 1:53 PM, Farrukh Najmi wrote:
>
>> Farrukh Najmi wrote:
>>> Paul Sandoz wrote:
>>>> On Jun 2, 2009, at 11:59 AM, Farrukh Najmi wrote:
>>>>
>>>>> Hi Guys,
>>>>>
>>>>> I am trying to build jersey latest svn bits to debug an issue. I
>>>>> get the following error.
>>>>> Are there any special instructions to build jersey. All I did was
>>>>> the following in root pom's dir:
>>>>>
>>>>
>>>> Scrub your local repo of the jsr 311 version 1.1 jar and try again.
>>> Thanks Paul.
>>>
>>> FYI, I also had to do:
>>>
>>> rm -rf ~/.m2/repository/scala*
>>>
>>> to get around additional build errors.
>>>
>>> Have a good time at J1.
>>>
>>
>> I spoke too soon. Even after scala* cleanup I get the following build
>> error:
>>
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [scala:compile {execution: default}]
>> [INFO] Checking for multiple versions of scala
>> [WARNING] Multiple versions of scala libraries detected!
>> [INFO] Compiling 1 source files to
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/target/classes
>> Downloading:
>> http://scala-tools.org/repo-releases/org/scala-lang/scala-compiler/2.7.3/scala-compiler-2.7.3.jar
>>
>> 6172K downloaded (scala-compiler-2.7.3.jar)
>> [WARNING]
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/src/main/scala/com/sun/jersey/scala/NodeWriter.scala:12:
>> error: NodeSeq is not a member of xml
>> [WARNING] import xml.NodeSeq
>> [WARNING] ^
>> [WARNING]
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/src/main/scala/com/sun/jersey/scala/NodeWriter.scala:20:
>> error: not found: type NodeSeq
>> [WARNING] class NodeWriter extends MessageBodyWriter[NodeSeq] {
>> [WARNING] ^
>> [WARNING]
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/src/main/scala/com/sun/jersey/scala/NodeWriter.scala:23:
>> error: not found: type NodeSeq
>> [WARNING] classOf[NodeSeq].isAssignableFrom(aClass)
>> [WARNING] ^
>> [WARNING]
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/src/main/scala/com/sun/jersey/scala/NodeWriter.scala:26:
>> error: not found: type NodeSeq
>> [WARNING] def getSize(nodes: NodeSeq, aClass: Class[_], aType:
>> Type, annotations: Array[Annotation], mediaType: MediaType) = -1L
>> [WARNING] ^
>> [WARNING]
>> /home/najmi/jvnet/jersey/jersey/contribs/jersey-scala/src/main/scala/com/sun/jersey/scala/NodeWriter.scala:28:
>> error: not found: type NodeSeq
>> [WARNING] def writeTo(nodes: NodeSeq, aClass: Class[_], aType:
>> Type, annotations: Array[Annotation], mediaType: MediaType,
>> stringObjectMultivaluedMap: MultivaluedMap[String, Object],
>> outputStream: OutputStream) : Unit = {
>> [WARNING] ^
>> [WARNING] 5 errors found
>>
>>
>> --
>> Regards,
>> Farrukh
>>
>> Web: http://www.wellfleetsoftware.com
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>