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 7905887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:40:27+00:00 2026-06-03T10:40:27+00:00

Am kind of stuck in trying to start JBoss automatically from Ant script with

  • 0

Am kind of stuck in trying to start JBoss automatically from Ant script with the help of Cargo open source project. Am getting this error shown underneath. Many Thanks!

taskdef:

    <taskdef resource="cargo.tasks">
        <classpath>
            <pathelement location="${cargo.core.jar}"/>
            <pathelement location="${cargo.ant.jar}"/>
        </classpath>
    </taskdef>

Jar Used:

 cargo-core-uberjar-1.2.1.jar
 cargo-ant-1.2.1.jar

Ant target:

<!-- Start JBoss -->
<target name="startJboss" depends="prepare">
    <cargo id="mycontainerid" containerId="jboss51x" home="C:/opt/jboss/jboss-4.0.5.GA/bin" action="start" wait="false" />
</target>

Output Error:

Buildfile: D:\opt\trunk\build.xml
startJboss:

BUILD FAILED
D:\opt\trunk\build.xml:51: Could not create type cargo due to java.lang.NoClassDefFoundError: org/apache/commons/discovery/resource/ClassLoaders

Total time: 2 seconds
  • 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-03T10:40:28+00:00Added an answer on June 3, 2026 at 10:40 am

    If you are using JBoss 4.0.5.GA, shouldn’t you be using a matching value for containerId instead of jboss51x? (I have not used Cargo in a while, so I may be wrong about this)

    The Cargo – Ant support page says Some additional dependencies might also be required for the ANT task. Please see the Installation page for details.; when I go to the Installation, it tells me that you need to satisfy Cargo’s base dependencies, which include Commons Discovery (which, your error message tells me, is missing) and Commons Logging. Add these JARs to the classpath for your taskdef and give it another shot.

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

Sidebar

Related Questions

I'm playing around with a project, C# .NET 4, and I'm kind of stuck.
Been kind of stuck on this one for a while now, so any help
I'm kind of stuck trying to code an example of file transfer using libpurple.
I'm kind of stuck since this morning... i'm trying to load an image after
I'm kind of stuck with this problem. I am currently trying to host a
I'm kind of stuck trying to come up with regular expression to break up
Kind of stuck with this thing, that's why need help please. I am using
I'm kind of like stuck trying to implement YUI autocomplete textbox. here's the code:
I kind of stuck on how to implement this query - this is pretty
I am kind of stuck with an issue where I am unable to to

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.