Hi, It's probably because you have autoDeploy set to true AND an explicit context with a different path for your webapp. So tomcat deploys it twice, one with your explicit context and once via autoDeploy with a path="/" + the app name, i.e. "/myApp". Pick one, in your case probably you should set autoDeploy="false".
In addition, you don't want path="/", you want path="". Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Chris [mailto:[EMAIL PROTECTED] >Sent: Friday, April 02, 2004 12:13 PM >To: [EMAIL PROTECTED] >Subject: Application loading twice > >Hello, > > > >Particulars: tomcat 5.0.19, fedora core 1, java 1.4.2 > > > >When starting tomcat my application loads twice, and I don't know why. The >engine portion of my server.xml is as follows: > > > ><Engine name="Catalina" defaultHost="localhost" debug="0"> > > <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" >autoDeploy="true" xmlValidation="false" xmlNameSpaceAware="false"> > > <Context path="/" docBase="myApp"/> > > </Host> > ></Engine> > > > > > >This causes my application to be served out not only on www.myApp.com/ but >also to www.myApp.com/myApp. > > > >I have a domain name registered and my linux box is serving tomcat out on >port 80. I guess maybe what I need to know is how to exactly map tomcat to >my domain. > > > >Thanks, > > > >c. > > > > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
