title: Archiva context path is ignored on Tomcat
body: <p>About installing archiva, followed </p>
  
  <p><a href="http://archiva.apache.org/docs/2.2.3/adminguide/webapp.html" rel="nofollow noreferrer">http://archiva.apache.org/docs/2.2.3/adminguide/webapp.html</a></p>
  
  <pre><code>&lt;Context path="/archiva"
            docBase="${catalina.home}/archiva/apache-archiva-2.2.3.war"&gt;
  
   &lt;Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
             username="archiva"
             password="123456"
             driverClassName="com.mysql.jdbc.Driver"
             url="jdbc:mysql://localhost:3306/archiva?useSSL=false" /&gt;
  
   &lt;Resource name="mail/Session" auth="Container"
              type="javax.mail.Session"
              mail.smtp.host="localhost"/&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>The war is deployed to Tomcat 8.0.26.</p>
  
  <p>If I change the context path from /archiva to /mavenRepos, it will not work.</p>
  
  <pre><code>19-Mar-2018 10:49:32.603 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [E:\apache-tomcat-9.0.6\conf\Catalina\localhost\archiva.xml]
  19-Mar-2018 10:49:32.638 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/mavenRepos] in deployment descriptor [E:\apache-tomcat-9.0.6\conf\Catalina\localhost\archiva.xml] has been ignored
  </code></pre>
  
  <p>Why the context path is ignored?</p>