Toby,

Not sure about the 'reserved' bit, but webapps is the default starting point
for Tomcat to look for directories that conform to the specs. Each
subdirectory should be a complete "Context". I'm not sure if the name
'webapps' is actually specified, but that is beside the point. Tomcat will
auto-load any directory under webapps/ as a Context. I'm not sure what would
happen if you changed the parameters to these entries:

   <AutoWebApp dir="modules" host="DEFAULT" trusted="true"/>

   <AutoDeploy source="webapps" target="webapps" />

If you want to specify a directory outside of the Tomcat install as a
Context (and thus having its own WEB-INF and whatnot) 3.3.1 lets you write a
simple XML file for each Context definition and stick it in conf/

At the end of server.xml:

  <!--
           Context definitions can be placed here ( not recommended ) or
           in separate files. The ContextXmlReader will read all context
           definitions ( you can customize the "base" filename ).

           The default is conf/apps-[name].xml.

           See conf/apps-examples.xml and conf/apps-admin.xml
   -->

So, add a conf/apps-webprod.xml or something to that effect and customize
the docBase attribute and whatever else you need to do.

<Context path="/webapp"
             docBase="/web/prod/webapp"
             reloadable="false"
             trusted="false" >
</Context>


Hope this helped.

Regards,
Michael Locasto



----- Original Message -----
From: "Toby Saville" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 2:20 AM
Subject: Finding the servlets


> How do i tell tomcat (3.3.1) to use a directory other than ROOT for
finding
> the WEB-INF with my servlets? I want to run my website in
/web/prod/webapp/
> and have the servlets in WEB-INF/classes/ but tomcat keeps looking in
> <tomcat_install>/webapps/ROOT/WEB-INF/classes/.
>
> Also, is the webapps/ directory a reserved name that tomcat looks for
(like
> WEB-INF) or is it just set via the AutoWebApp directive in server.xml?
>
> thanks.
>
> -t0bes
>
>
> ***************************************************************
> This message is intended for the addressee named and
> may  contain confidential information. If you are not the
> intended recipient, please delete it and notify the sender.
> Views expressed in this message are those of the
> individual sender, and are not necessarily the views of the
> Department of  Information Technology & Management.
>
> This email message has been swept by MIMEsweeper
> for the presence of computer viruses.
> ***************************************************************
>
>
> --
> To unsubscribe, e-mail:
<mailto:[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]>

Reply via email to