Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8761211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:13:58+00:00 2026-06-13T15:13:58+00:00

I used to deploy my WAR on local tomcat server and had a jackson-core.jar

  • 0

I used to deploy my WAR on local tomcat server and had a jackson-core.jar in the lib folder of tomcat. Now, I’ve switched to maven and am using the jetty plugin.

Everything works fine except that I get a 406 error - The server responded with 406 error (Not acceptable) I know the error is coming because the app server (jetty) does not have the jackson-core.jar in it.

Question:

How can I place a jar in embedded jetty’s lib folder like I had done for standalone tomcat server. Is this possible?

I’ve tried the following:

<configuration>
  <scanIntervalSeconds>5</scanIntervalSeconds>
  <webAppConfig>
  <contextPath>/myapp</contextPath>
  <extraClasspath>/Users/myuser/Downloads/jackson-core-2.1.0.jar</extraClasspath>
  </webAppConfig> 
</configuration>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:13:59+00:00Added an answer on June 13, 2026 at 3:13 pm

    You can modify the classpath of plugins (as opposed to the classpath of your project) by adding a <dependencies> section to the plugin definition. e.g.

    <project>
      ...
      <build>
        ...
        <plugins>
          ...
          <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>8.0.4.v20111024</version><!-- or whatever version you specified -->
            <configuration>
              ...
            </configuration>
            ...
            <dependencies>
              <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>2.1.0</version>
              </dependency>
            </dependencies>
            ...
          </plugin>
          ...
        </plugins>
        ...
      </build>
      ...
    </project>
    

    Now you might be using an older version of Jackson, or even the older API (which lives at a different GroupId:ArtifactId as it broke backwards compatibility) so you will need to do your own research to ensure you have selected the correct one.

    The general principle of adding <plugin> scoped dependencies is used by most of the more advanced plugins. There are one or two minor gotcha’s, namely where you are overriding a dependency of the plugin itself, i.e. where the groupId:artifactId of the dependency you are adding matches the groupId:artifactId of a dependency declared in the plugin’s pom, your entry will take precidence, and if you pull the version lower you might break the plugin… but that will not be the case for jetty and jackson.

    Another specific gotcha with jetty is when you pull in the slf4j-api dependency, jetty will try to use that for logging, and given some of the breaking API changes in one small area of slf4j’s API (specifically to do with writing a logging adapter – which jetty does) you may have issues if you don’t use the suite of slf4j-_ jars belonging to the version of slf4j that the version of jetty you are using was designed to work with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using maven-tomcat-plugin to deploy a tapestry application on a tomcat6 server. The deployment
I've used the maven-ear-plugin with the maven-war-plugin and maven-ejb-plugin to successfully deploy and run
I have used Jboss and deployment happens by dropping war to deploy folder. But
I deploy 3 WAR files using Ant scripts and stop and start tomcat using
I have a spring project and using ANT to compile/deploy my war to Tomcat.
I have read that it is possible with Tomcat 5.5+ to deploy a war
I'm trying to deploy a war with mvn tomcat:deploy and I get Failed to
I used to deploy Django projects into production with git. There I had simply
I used the phonegap website to create an IPA file. Now I want to
Having used storyboards for a while now I have found them extremely useful however,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.