Can I deploy a war file with multiple different context-root in JBoss EAP ?

Solution Unverified - Updated -

Issue

I have a war deployment test.war, can I deploy it with 2 different context-root names (for example, /test1 and /test2) on JBoss Enterprise Application Platform (EAP) ?
In application.xml:

<module>
    <web>
        <web-uri>test.war</web-uri>
        <context-root>test1</context-root>
    </web>
</module>
<module>
    <web>
        <web-uri>test.war</web-uri>
        <context-root>test2</context-root>
    </web>
</module>

Environment

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

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