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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:23:52+00:00 2026-05-27T10:23:52+00:00

I have a war file and I need to deploy it on Jboss 7.0.1

  • 0

I have a war file and I need to deploy it on Jboss 7.0.1 Server. Now I have gone through the documentation, but didnt find any thing to deploy a war file. Moreover for deploying your build through command line you generally have to use maven. So do we need for the war as well? If so, does it affects the war file?

FYI : I am using linux (CentOs5)…

  • 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-27T10:23:52+00:00Added an answer on May 27, 2026 at 10:23 am

    You can deploy a .war file using the Management Command Line Interface. The specific documentation for it is located here: JBoss AS7 Admin Guide – Deployment, with the relevant sections per the below. You might also like to have a quick watch of the video: 5 Ways To Deploy Your Applications To JBoss AS7

    CLI Deployment To A Managed Domain

    The process of distributing deployment binaries involves two steps: You need to upload the deployment to the repository from which the domain controller can distribute it’s contents. In a second step you need to assign the deployment to one or more server groups:

    Using the CLI you can do it one sweep:

    [domain@localhost:9999 /] deploy ~/Desktop/test-application.war
    Either --all-server-groups or --server-groups must be specified.
    
    [domain@localhost:9999 /] deploy ~/Desktop/test-application.war --all-server-groups
    'test-application.war' deployed successfully.
    
    [domain@localhost:9999 /] deploy --help
    [...]
    

    After you’ve uploaded the binary using the “deploy” command, it will be available to the domain controller
    and assigned to a server group:

    [domain@localhost:9999 /] :read-children-names(child-type=deployment)
    {
       "outcome" => "success",
       "result" => [
           "mysql-connector-java-5.1.15.jar",
           "test-application.war"
       ]
    }
    
    [domain@localhost:9999 /] /server-group=main-server-group/deployment=test-application.war:read-resource
    {
       "outcome" => "success",
       "result" => {
           "enabled" => true,
           "name" => "test-application.war",
           "runtime-name" => "test-application.war"
       }
    }
    

    In a similar way it can be removed from the server group:

    [domain@localhost:9999 /] undeploy test-application.war --all-relevant-server-groups
    Successfully undeployed test-application.war.
    
    [domain@localhost:9999 /] /server-group=main-server-group:read-children-names(child-type=deployment)
    {
       "outcome" => "success",
       "result" => []
    }
    

    CLI Deployment To A Standalone Server

    Deployment on a standalone server works similar to the managed domain, just that the server-group associations don’t exist. You can rely on the same CLI command as for a managed domain to deploy an application:

    [standalone@localhost:9999 /] deploy ~/Desktop/test-application.war
    'test-application.war' deployed successfully.
    
    [standalone@localhost:9999 /] undeploy test-application.war
    Successfully undeployed test-application.war.
    

    CLI Deployment to Standalone Server (one liner Shell command)

    You can deploy a WAR in one shot from the Shell as well. This is useful for Bash scripts or Unix aliases. NOTE: This exposes the password, so only use it for personal development instances. Ensure $JBOSS_HOME is set, and change Password and WAR file path & name below as needed:

    $ $JBOSS_HOME/bin/jboss-cli.sh -u=admin -p=MY_PASSWORD --controller=localhost:9990 --connect --command="deploy /path/to/MY_APP.war --force"
    

    Footnote: As you would know, you’ve got the Management Console for deployment, as well as the deployment scanner. The former is popular as any GUI would be, but the latter is more for development. I try to use the CLI as much as possible, as the learning curve is well worth the effort for the power of batch scripting and the sheer scale of low level operations that are exposed by the CLI API. Very cool stuff. I should add for sake of transparency that I work on the AS/EAP documentation team, so I might be biased.

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

Sidebar

Related Questions

I have the war file of my application. I need to deploy this at
I'm trying to deploy a war file into Weblogic 10.3.5 but it's now working.
I have .war file and I need to do deploy script. Is it possible
I have the css-validator.war file provided by W3C running locally on JBoss . I
During development I frequently have to deploy a large war-file (~45 MB) to a
I have to deploy a war to a tomcat but I cannot modify anything
I have a Linux Machine. Apache server is running and I need to deploy
I have a source tree for a .war file that I need to modify
I have created a mail.jar file and mywar.war file. What I need to set
I need to stop the glassfish server, deploy my war into the glassfish and

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.