I'm developing an app for Glassfish 4.0, which uses Jersey 2. I want to use Jackson as the JSON provider for Jersey.
I have updated the Jersey version in Glassfish, which helps with the CDI issues.
Ideally, I would like to use the newer (fasterxml) version of Jackson.
Currently, I have the app configured to use the version of Jackson provided by Glassfish (codehaus).
So, I know how to use Glassfish 4 with the provided Jersey and Jackson. I also know how to configure the latest Jersey to use the latest Jackson in a standalone Jersey app.
However, I can't deploy and run an app in Glassfish 4.0 with the latest version of Jersey and Jackson. I tried adding the maven dependencies, with no success. I suspect that Glassfish is somehow using it's own versions, which then conflicts with the ones from maven.
Should this work? I mean, should an application be able to provide its own versions of Jersey and Jackson and have Glassfish use them? I ask because I'm aware of some bugs in Glassfish 4 that may possibly be the cause of my problems.