> From: puttea [mailto:putt...@gmail.com] > Subject: Problem setting up multiple hosts > > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > <Context path="" docBase="ROOT" debug="0"></Context> > </Host> > <Host name="oc3.mydomain.dk" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > <Context path="" docBase="OpenClinica3" debug="0"></Context> > </Host>
Don't put <Context> elements in server.xml - that requires restarting Tomcat whenever you need to change something in the webapp. The <Context> element (if you need one at all) belongs in [appBase]/[appName]/META-INF/context.xml, and the path and docBase attributes must be removed. Also, the debug attribute hasn't been used in quite some time. After removing the undesirable attributes, you'll discover you don't actually need <Context> elements for these webapps. As Mark's link pointed out, you should be using a separate appBase for each <Host>. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org