On Thu, Aug 29, 2013 at 2:10 PM, Daniel Mikusa <dmik...@gopivotal.com>wrote:
> 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 > > Thank you both. I see in the link you sent me, that "path" can only be see from within server.xml. To correct myself from eariler i said it worked in context.xml, when it was in deed server.xml where i had it specified. I would prefer not to to have to rename the war, but at this point im not going to complain about it. :) I just spent a lot of time migrating from server.xml to conf/Catalina/localhost/*.xml. I'll have to deal with a rename to make things work properly. Thanks, Dan