Announcement Announcement Module
Collapse
No announcement yet.
Does spring integration support Jackson 2.x? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does spring integration support Jackson 2.x?

    I'm trying to use an object-to-json-transformer (and it's counterpart) to play with SI's AMQP support. I've added Jackson 2.1.2 to my classpath, however when the application starts up I get the old java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper error.

    I've even defined an object mapper bean (in the new com.fasterxml namespace) and set the transformers to use it, but that does not seem to work.

    Am I stuck with the 1.x line for now?

    Thanks.

  • #2
    Hi!

    Yes, it is: you still should use 1.x
    We have a open issue on the matter: https://jira.springsource.org/browse/INT-2831
    However AMQP should supprt it too. So, you're free to raise similar JIRA here: https://jira.springsource.org/browse/AMQP

    I think we're going to take care of Jackson 2 on the 3.0 timeline.

    Cheers,
    Artem

    Comment


    • #3
      I was looking at using the Metrics library from Codehale (http://metrics.codahale.com/). They have Jackson 2.1 as a dependency. Any idea if I can use 2.1 an 1.9 in the same project because their artifacts and namespaces are completely different?

      There's doesn't seem to be a big rush right now to get SI up to 2.1 while the rest of the Spring stack seems to be moving forward with it. This might cause some problems for developers.

      Comment


      • #4
        Any idea if I can use 2.1 an 1.9 in the same project
        Why just don't try it ?
        You'll get several jars with different packages: Spring will use 1.9 and Metrics 2.1.
        At a glance we'll have support both Jacksons in the Spring Integration and Spring AMQP.

        Comment


        • #5
          Originally posted by Cleric View Post
          Why just don't try it ?
          You'll get several jars with different packages: Spring will use 1.9 and Metrics 2.1.
          At a glance we'll have support both Jacksons in the Spring Integration and Spring AMQP.
          I'm going to give it a shot. Just curious if anyone else had and if it was really possible before dedicating the time.

          Comment

          Working...
          X