users@jersey.java.net

Compiling the Spring contribution

From: Mike Jones <mike.a.jones_at_gmail.com>
Date: Tue, 20 May 2008 11:59:16 +0100

Hello

I managed to get an earlier version of the spring integration with
Jersey compiled and working - however, I am now having a bit of
trouble.

The steps I have taken:

Checkout the trunk version of Jersey and install it into my local repo:

mvn install:install-file -Dfile=./jersey.jar -DgroupId=com.sun.jersey \
-DartifactId=jersey -Dversion=0.8-ea-SNAPSHOT -Dpackaging=jar

Checkout the latest JSR-311 spec and install it into my local repo:

mvn install:install-file -Dfile=./jsr311-api.jar -DgroupId=javax.ws.rs
\ -DartifactId=jsr311-api -Dversion=0.8-SNAPSHOT -Dpackaging=jar

To get the spring contribution to compile and pass some tests I needed
to add the following dependencies to the pom.xml file:

<dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>jsr311-api</artifactId>
    <version>0.8-SNAPSHOT</version>
</dependency>

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.2</version>
</dependency>

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>jsr250-api</artifactId>
    <version>1.0</version>
</dependency>

<dependency>
    <groupId>asm</groupId>
    <artifactId>asm</artifactId>
    <version>3.1</version>
</dependency>

However, a number of tests are still failing. For example:

Tests run: 28, Failures: 17, Errors: 0, Skipped: 0, Time elapsed:
6.132 sec <<< FAILURE!
testGetAndUpdateItem(com.sun.jersey.spring.AutowiredByJerseySpringSingletonResourceTest)
 Time elapsed: 0.049 sec <<< FAILURE!
com.sun.jersey.api.client.UniformInterfaceException
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:346)
        at com.sun.jersey.api.client.WebResource.get(WebResource.java:81)
        at com.sun.jersey.spring.AutowiredByJerseySpringSingletonResourceTest.testGetAndUpdateItem(AutowiredByJerseySpringSingletonResourceTest.java:44)

I'm still working out how to get pass this issue. However, am I on the
right path for compiling the spring contribution? Am i missing an ant
or maven target?

Sorry if I am being a bit dim :-)

Cheers
Mike