On Aug 29, 2013, at 2:02 PM, D C <dc12...@gmail.com> wrote: > Tomcat 7.0.40 > RHEL 6 > > I am trying to define all of my contexts in conf/Catalina/localhost/*.xml. > > This seems to work fine, however I'm having an issue setting the path. > > myApp.xml > <Context path="/tracking" > > > This simply does not work.
You generally don't want to set "path". In most cases, path is inferred by the name of your deployment file, either <path>.war or <path>.xml. > It worked fine if I put it into conf/context.xml. Yikes. I wouldn't suggest that. > > The only way this works is if i rename my war file to tracking.war. That's what you want to do. > Why is the path ignored? In this case, it's by design. See the docs for more info. Check out the "path" attribute, the "Naming" and "Defining a context" sections. https://tomcat.apache.org/tomcat-7.0-doc/config/context.html Dan > > > > > > > > > Thanks, > Dan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org