Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

2.9

Compare
Choose a tag to compare
@mgajdos mgajdos released this 26 May 12:00
· 1334 commits to master since this release

Release date: 23-May-2014

Highlights

Declarative Linking

Gerard updated the Declarative Linking extension module which has been ported to Jersey 2 in version 2.6. You can read more about what Declarative Linking does and what it's capable of in the following blog posts:

Jackson 2

Our media module that supports working with JSON via Jackson library has been updated to use Jackson 2.x (2.3.2). All samples and tests have been rewritten to use Jackson 2 as well. In order to use Jackson 2 in your application you need to add jersey-media-json-jackson (+ it's Jackson dependencies) to your class-path and register JacksonFeature in your application.

META-INF/services

We dropped automatic registration of message body providers (MessageBodyWriter, MessageBodyReader) and exception mappers via META-INF/services mechanism. This functionality can be restored by adding jersey-metainf-services module to the class-path of your application.

Note: This change may affect 3rd party libraries (e.g. Jackson 2.x) in a way their provider would not be registered in an JAX-RS app. You need to either register them manually or use mentioned jersey-metainf-services module.

Jersey Test Framework

Jersey Test Framework now supports TestNG to run the tests (in addition to the JUnit, which is supported by default). You can now run the tests in parallel using either JUnit or TestNG. See chapters dedicated to TestNG and parallel testing for more information: Running TestNG Tests and Parallel Testing with Jersey Test Framework.

Bug

  • [JERSEY-2320] - EJB singleton bean registered as an exception mapper causes deployment failure
  • [JERSEY-2420] - jersey-guava-2.6-sources.jar is empty
  • [JERSEY-2484] - Memory leak in GrizzlyHttpServerFactory when HttpServer.start throw exception
  • [JERSEY-2496] - Permgen memory leak when deploy/undeploy multiple times
  • [JERSEY-2499] - Bean validation not working for constraints placed on super classes
  • [JERSEY-2501] - Jersey 2.8 breaks JerseyTest unit tests under TestNG
  • [JERSEY-2502] - JdkHttpServerFactory does not return HttpsServer when https:// URI is used.
  • [JERSEY-2514] - Typo in documentation
  • [JERSEY-2520] - Jersey 2.x application missing / MIME-Type in WADL

Improvement

  • [JERSEY-2512] - Declarative linking reading
  • [JERSEY-2517] - Create mechanism to automatically register features/providers even when autodiscoverable and metainf/services mechanisms are disabled
  • [JERSEY-2518] - Disable MBW, MBR, ExceptionMapper automatic registration via META-INF/services

Task

  • [JERSEY-2519] - Update Jackson JSON module to use Jackson 2.x (Jackson 1.x -> Jackson 2.x)