Results 1 to 2 of 2
  1. #1
    dilipmendis is offline Member
    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Default jackson-mapper-asl latest version jar not deployed in tomcat

    I need jackson-mapper-asl and jackson-core-asl in my project. When I try to use them with 1.9.13 version, the jars are getting downloaded properly. But when tomcat deploys, 1.8.5 goes into the web-inf/lib folder for jackson-mapper-asl alone. I tried the dependency tree, it was also showing as 1.9.13 mostly, but 1.8.5 one place where it matters. Since Im new to maven, not sure how to proceed.

    Below are the maven dependencies specification

    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-jaxrs</artifactId>
    <version>1.9.13</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-xc</artifactId>
    <version>1.9.13</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-mapper-asl</artifactId>
    <version>1.9.13</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-core-asl</artifactId>
    <version>1.9.13</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-asl</artifactId>
    <version>0.9.4</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-core-lgpl</artifactId>
    <version>1.7.4</version>
    </dependency>
    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-mapper-lgpl</artifactId>
    <version>1.7.4</version>
    </dependency>


    Any help would be greatly appreciated, struggling with this one. Thanks,

  2. #2
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,083
    Rep Power
    4

    Default Re: jackson-mapper-asl latest version jar not deployed in tomcat

    Are you sure you even need to manually put jackson dependencies in your maven pom? I see that you are also linking jackson-jaxrs there so you are probably doing this because you want to get a JAX-RS based RESTful webservice going. If the implementation you have chosen (Jersey, RestEasy, ...) uses jackson, it will put the proper version of Jackson already on your application's runtime classpath through transient dependencies, no need to do that yourself. In fact I would advise against it because you may cause version conflicts.

    In any case from what you've posted I wouldn't know why the older version would end up in your application since you're defining the newer version yourself; that should always override the older version that may come in as a transient dependency. You'll have to post more of the poms and also the output of the dependency tree command.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 1
    Last Post: 10-08-2013, 01:31 PM
  2. Replies: 0
    Last Post: 07-06-2012, 01:22 PM
  3. Replies: 1
    Last Post: 12-18-2010, 04:44 PM
  4. Tomcat version for jdk 1.4.2
    By AnithaKarthik in forum Java Servlet
    Replies: 3
    Last Post: 11-09-2008, 01:21 PM
  5. Replies: 0
    Last Post: 04-09-2008, 08:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •