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

  • Home
  • SEARCH
  • 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 6555719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:51:15+00:00 2026-05-25T12:51:15+00:00

[Using Apache Ivy] I am trying to configure my settings file to use an

  • 0

[Using Apache Ivy]

I am trying to configure my settings file to use an SFTP repo (we have an FTP server at the office) and getting a NoClassDefFoundError for the com/jcraft.jsch.SftpException class. Here is the definition in my file:

<sftp user="myuser" userPassword="mypasswd"> 
    <ivy pattern="ftp://MyFtpServer/some/path/artifacts/[organisation]/[module]-[revision]-ivy.xml"/> 
    <artifact pattern="ftp://MyFtpServer/some/path/artifacts/[organisation]/[artifact]-[revision].[ext]"/> 
</sftp> 

When I run the “resolve” target in my build (which runs configure, then resolve, then retrieve Ivy tasks), I get the following build error during the ivy:resolve phase:

BUILD FAILED

C:\blah\workspace\MyProject\build.xml:53: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)

Followed by a very, very lengthy stacktrace.

I am using the latest (2.2.0) version of Ivy – do I need to do something? Am I missing a JAR or other resource?

Thanks for any help or insight here!

  • 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-05-25T12:51:16+00:00Added an answer on May 25, 2026 at 12:51 pm

    You need a jsch lib in the ant/lib directory (or in your ant classpath). This lib is required by the sftp resolver.

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

Sidebar

Related Questions

I am using ant and Apache Ivy, and i have multiple plans in my
I am using Apache POI to read xlsx file, it works well. I have
I'm using Apache Ivy with Spring based project. I use Spring Enterprise Bundle Repository
Using Apache on a Red Hat server, I'm trying to rewrite the URL of
I am using Apache Axis to connect my Java app to a web server.
I'm using Apache Subversion to manage and store a decent volume of code. Trying
I am using apache ant to generate javadoc for my project. I have a
Using Apache Felix, I have an OSGi component I've authored that wraps some middleware
I am using Apache HttpClient to upload a file through MultipartEntity, I need to
I'm trying to use ivy:publish to publish a jar that I've built to the

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.