title: Set Tomcat Default Context Path
body: <p>In my <code>context.xml</code> file I set the following to: <code>&lt;Context antiJARLocking="true" path="/" /&gt;</code></p>
  
  <p>When I run my project from NetBeans then it works correctly and goes to <code>http://localhost:8080/login</code>. Then when I clean &amp; build and go into Tomcat Manager and deploy the war file, for some reason it goes to <code>http://localhost:8080/appName/login</code>. I'm not sure why it's adding the context path or where it even gets it from but when ever I deploy it manually it does that. When ever I run the project directly from Netbeans then it doesn't. After I run it directly from NetBeans, if I go to Tomcat Manager then it shows the app deployed under context path <code>/</code> which is correct. When I deploy the .war manually then it deploys under context path <code>/appName</code></p>