Tomcat 4.x uses a different architecture from Tomcat 3.3.x, which is why their server.xml files contain very different contents. Thus, <AutoWebApp> isn't a supported element in the 4.x server.xml. You can probably accomplish the same thing with multiple <host> elements, but not without a bit more duplication of server.xml content than Tomcat 3.3.1.
Cheers, Larry > -----Original Message----- > From: August Detlefsen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 3:40 PM > To: Tomcat Users List > Subject: RE: Can all virtual hosts use a webapp that is put > inside $tomcat _home$/webapps? > > > Is this also supported in TC 4.x? > > > > --- Larry Isaacs <[EMAIL PROTECTED]> wrote: > > I don't believe Tomcat 3.2.x supports auto-serving the > > "webapps" directory for hosts other than the default host. > > However, this is supported in Tomcat 3.3.x. The > > <AutoWebApp ...> element in the server.xml file supports > > specifying the directory and host, e.g.: > > > > <AutoWebApp dir="webapps" host="DEFAULT" /> > > <AutoWebApp dir="webapps" host="www.domain.com" /> > > > > For details see: > > > > > <http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.htm > l#AutoWebApp> > > > > Cheers, > > Larry > > > > > -----Original Message----- > > > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, May 14, 2002 7:58 PM > > > To: Tomcat Users List > > > Subject: RE: Can all virtual hosts use a webapp that is put > > > inside $tomcat_home$/webapps? > > > > > > > > > Everyone must have gone home...I'm really hoping that someone > > > can help with > > > this, it seems like it would be a common problem. > > > > > > Tomcat 3.2.x will not find files inside a webapp unless > that webapp > > is > > > specifically declared inside each virtual host in the > > > server.xml file. I > > > want to be able to put all my webapps inside > > > $tomcat_home$/webapps so that > > > they will automatically be found. Since we have many virtual > > > hosts, each > > > using several different webapps, is there any way to avoid > > > the "myWebapp" > > > context entry below for hundreds of diffent virtual hosts? > > > > > > > > > <Host name="www.domain.com"> > > > <Context path="" > > > docBase="/usr/local/vhosts/domain.com/httpdocs"> > > > crossContext="false" > > > debug="0" > > > reloadable="true" > > > </Context> > > > > > > <Context path="/myWebapp" > > > docBase="/usr/local/tomcat/webapps/myWebapp" > > > crossContext="true" > > > debug="0" > > > reloadable="true" > > > trusted="false"> > > > </Context> > > > </Host> > > > > > > > > > > > > Please help! We've been banging our heads on this all day! > > > > > > Thanks > > > > > > Brandon > > > > > > > > > -----Original Message----- > > > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, May 14, 2002 5:06 PM > > > To: Tomcat Users List > > > Subject: Can all virtual hosts use a webapp that is put inside > > > $tomcat_home$/webapps? > > > > > > > > > I have many virtual hosts. Right now, they all access a > > > webapp because I > > > have set the context to that webapp inside their <Host> tag > > > in server.xml. > > > I would like to change it so that all I have to do is put the > > > webapp inside > > > $tomcat_home$/webapps. Is this possible so that I can avoid > > > the redundant > > > entries in server.xml, or does virtual hosting cause a > > > problem with this? I > > > am using tomcat 3.2.4, thanks in advance for any help! > > > > > > > > > Brandon > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:tomcat-user-> [EMAIL PROTECTED]> > > > For > > > additional commands, > > > e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
