users@jersey.java.net

Re: [Jersey] Jersey build error

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Tue, 02 Jun 2009 16:53:49 -0400

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