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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:09:46+00:00 2026-05-27T12:09:46+00:00

Are there any simple ways to see what wars have been deployed in Jboss

  • 0

Are there any simple ways to see what wars have been deployed in Jboss AS and undeploy some of them? I want to do this from the command line.

I tried using jmx but I keep getting exception saying “org.jboss.util.NestedRuntimeException: jmx not bound;” I’d prefer to do it in a way where I don’t have to stop and start the application server.

  • 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-27T12:09:46+00:00Added an answer on May 27, 2026 at 12:09 pm

    You can approach this in three ways in JBoss Application Server 7:

    • Management Console
    • Management CLI
    • Deployment folder

    Management Console

    Being a GUI, the Management Console is the most visual of the three, and you can see the list of deployed applications under the Deployment window. You have the option to Disable and Remove the deployed applications listed here. This screenshot is from AS7.0.2, and some windows have and will change with the addition of tabs, but the general functionality remains the same.

    Imgur

    Management CLI

    The Management Command Line Interface is a new addition to AS7. The CLI exposes a lot of low-level functionality, and is a powerful tool once you get familiar with the commands and operations. As you might expect, you can run help to show the commands, or run <commandname> --help for more information on a specific command. Two useful commands are deploy and undeploy, so let’s look at their help information. I’ll give Linux examples, but you can insert your flavour of OS as required.

    Here’s deploy:

    [standalone@localhost:9999 /] deploy --help
    SYNOPSIS
    
        deploy (file_path [--name=deployment_name] [--runtime_name=deployment_runtime_name] [--force] | --name=deployment_name) [--server-groups=group_name (,group_name)* | --all-server-groups]
    
    DESCRIPTION
    
        Deploys the application designated by the file_path or enables an already existing
        but disabled in the repository deployment designated by the name argument.
        If executed w/o arguments, will list all the existing deployments.
    
    ARGUMENTS
    
     file_path           - the path to the application to deploy. Required in case the deployment
                           doesn't exist in the repository.
                           The path can be either absolute or relative to the current directory.
    
     --name              - the unique name of the deployment. If the file path argument is specified
                           the name argument is optional with the file name been the default value.
                           If the file path argument isn't specified then the command is supposed to
                           enable an already existing but disabled deployment, and in this case the
                           name argument is required.
    
     --runtime_name      - optional, the runtime name for the deployment.
    
     --force             - if the deployment with the specified name already exists, by default,
                           deploy will be aborted and the corresponding message will printed.
                           Switch --force (or -f) will force the replacement of the existing deployment
                           with the one specified in the command arguments.
    
     --server-groups     - comma separated list of server group names the deploy command should apply to.
                           Either server-groups or all-server-groups is required in the domain mode.
                           This argument is not applicable in the standalone mode.
    
     --all-server-groups - indicates that deploy should apply to all the available server groups.
                           Either server-groups or all-server-groups is required in domain mode.
                           This argument is not applicable in the standalone mode.
    
     -l                  - in case none of the required arguments is specified the command will
                           print all of the existing deployments in the repository. The presence of the -l switch
                           will make the existing deployments printed one deployment per line, instead of
                           in columns (the default).
    

    And here’s undeploy:

    [standalone@localhost:9999 /] undeploy --help
    SYNOPSIS
    
        undeploy name [--server-groups=group_name (,group_name)* | --all-relevant-server-groups] [--keep-content]
    
    DESCRIPTION
    
        Undeploys the deployment with the given name and, depending on the arguments, removes
        its content from the repository.
        If the deployment name isn't specified, prints the list of all the existing deployments.
    
    ARGUMENTS
    
     name                   - the name of the deployment to undeploy.
    
     --server-groups        - comma separated list of server group names the undeploy command should apply to.
                              Either server-groups or all-relevant-server-groups is required in the domain mode.
                              This argument is not applicable in the standalone mode.
    
     --all-relevant-server-groups   - indicates that undeploy should apply to all the server groups
                                      in which the deployment is enabled.
                                      Either server-groups or all-relevant-server-groups is required in domain mode.
                                      This argument is not applicable in the standalone mode.
    
     --keep-content         - by default undeploy, besides disabling the deployment, also removes its
                              content from the repository. The presence of --keep-content will only disable
                              the deployment w/o removing its content from the repository.
                              This argument can be used in both standalone and domain modes.
    
     -l                     - in case the deployment name isn't specified, the presence of the -l switch
                              will make the existing deployments printed one deployment per line, instead of
                              in columns (the default).
    

    The CLI In Action

    Running the deploy or undeploy command without any arguments will list all the applications available. So your workflow to log in to the CLI and undeploy an application would be like this (simplified):

    Change directory from EAP_HOME to the bin folder:

    [user@home EAP_HOME]$ cd bin
    

    Run the CLI logon script:

    [user@host bin]$ ./jboss-admin.sh
    You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
    

    Instruct the API to connect (this can also be passed at runtime as ./jboss-admin.sh --connect).

    [disconnected /] connect
    Connected to standalone controller at localhost:9999
    

    Run the undeploy command to display available applications.

    [standalone@localhost:9999 /] undeploy
    test.ear
    

    Run the undeploy command to undeploy the application. In this case, the test.ear.

    [standalone@localhost:9999 /] undeploy test.ear
    Successfully undeployed test.ear.
    

    Deployment Folder

    If you are running an instance of AS7 as a development tool, and are using the deployment folder, you can simply delete the application. You will notice that a marker file is created, such as test.ear.failed, to signify the status of the application deployment.

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

Sidebar

Related Questions

Is there any (simple) way to get some control of the order in which
Is there any simple way how to draw obliquely strike through on TextView? Now
Is there any simple way how to initialize String in Objective-C with int such
Is there any simple way to create instance of modal DialogBox with single text
Is there any simple way to tell if UNC path points to a local
In git, is there any (simple) way to modify the index so that only
As a follow up question to my last one , is there any simple
Are there any tool / simple method to read the properties (Ex : Compression
is there any other simple,nicer way? require 'pp' a1 = [02/28/10,Webinars,131,0,26 Feb 2010,0,3d, 8h,
Is there any reliable and simple priority queue (linked list preferred, not necessary) implementation

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.