> From: Richard K Miller [mailto:[EMAIL PROTECTED] 
> Subject: Deploying apps outside of the Tomcat root
> 
> However, I would like to deploy a project in my home folder.  This  
> folder contains a WEB-INF folder and all the jsp files.  How can I  
> switch Tomcat to point to /Users/me/dev/myproject/web instead 
> of /usr/local/tomcat/webapps where it currently is?

You need to become familiar with this:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

The default app must be named ROOT - no ifs, ands, or buts.  You can
achieve this in one of three ways.

If you want only your app to be available via Tomcat, change the appBase
attribute of your <Host> element in conf/server.xml to point to the
directory immediately above your application instead of webapps, and
rename the directory your app is in to ROOT.

If you want to keep the existing Tomcat apps (other than the normal
ROOT), you must first delete the existing webapps/ROOT directory (or
rename it).  Following that, you can either move your app into
webapps/ROOT, or create conf/[engine]/[host]/ROOT.xml containing a
<Context> element with a docBase attribute pointing to your app.
(Unless you've changed them, [engine] is Catalina, and [host] is
localhost.)

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to