How to recover the war/ear files deployed in JBoss EAP 6?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • How do I recover the war or ear files after deployment in JBoss EAP 6?
  • Where are the deployed war/ear files stored in EAP 6?
  • In JBoss EAP 5.x, just copied a war/ear file from /deploy directory for recovery. How to recover those files in JBoss EAP 6?

Resolution

Standalone Mode

  • You can recover ear and war files from the /deployment directory

    ${JBOSS_HOME}/standalone/deployments
    

    If the application was deployed using JBoss CLI or using the web console then it can be recovered from

    ${JBOSS_HOME}/standalone/data/content/xxx
    

Domain Mode

  • there is no directory that keeps the files deployed and available for recovering.
  • You can find the content of the files in:

    ${JBOSS_HOME}/domain/data/content/xxx
    
    • Although you can rename it (i.e. xxx.war), we do not recommend the use of this method for recovery.
    • The best approach is to always keep a copy of the original file.

Related Solutions

How to save / download a deployment deployed in JBoss EAP 7.1 content repository

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.