How do I deploy my WAR to the JBoss Root Context?

Solution Verified - Updated -

Issue

  • After deploying an application titled 'TEST.war' to the "/" context and browsing to the index.html "Jboss EAP Welcome page", the following error is seen:
    org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: 
    name=jboss.web.deployment:war=/ state=Create mode=Manual requiredState=Installed 
    [ActivityHistoryIfExistsFollows:][ExceptionIfExistsFollows:] org.jboss.deployers.spi.DeploymentException: 
      Web mapping already exists for deployment URL file:/opt/jboss/jboss-eap-5.1.2/jboss-as/server/occ-epc-az-qa/deploy/az.war/
  • Additionally, the ROOT.war/index.html page is shown, when it should be the TEST.war/index.html page.

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 4.X
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content