Setting the application context-root deployed in Apache Tomcat

Solution Verified - Updated -

Issue

  • We have a app moving from JBoss to tomcat, we have below configuration in the code to change the context root. How can we achieve this ?

    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
            <context-root>/myapp/api</context-root>
    </jboss-web>
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • JBoss Web Server (JWS)
  • Apache Tomcat

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